Metadata-Version: 2.1
Name: max-contrast
Version: 0.0.1
Summary: 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.
Home-page: https://github.com/delivey/max-contrast
Author: delivey
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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. 

# Usage
```python
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](./examples/example.jpg)
![Contrasting 100](./examples/example_contrasted100.jpg)

# Example (Contrasting -100, Brightness 0)
![No filters applied](./examples/example.jpg)
![Contrasting 100](./examples/example_contrasted-100.jpg)

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