Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

max-contrast

Library which replicates the Paint.net contrast & brightness functionality in Python, allowing you to increase the contrast of an image until it turns B&W.

Installation

pip install max_contrast

Usage

from max_contrast import contrast_image

# contrast_image(image_path, brightness, contrast, save_path=False, show=False)
contrast_image("./example.png", 0, 100, "./example-contrasted.png")

Example (Contrasting 100, Brightness 0)

No filters applied Contrasting 100

Example (Contrasting -100, Brightness 0)

No filters applied Contrasting 100

Credits

Inspiration for the code has been taken from OpenPND: https://github.com/rivy/OpenPDN

About

Python contrasting library based on OpenPDN (pip install max-contrast)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages