Skip to content

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

License

Notifications You must be signed in to change notification settings

delivey/max-contrast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages