semvec/pypi-packages huggingface dataset:
max-contrast 0.0.2
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.
License: MIT
Requires Python: >=3.6

# 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