A package for enhancing images with various filters and adjustments
Project description
Image Enhancer
Image Enhancer is a Python package that allows you to easily apply various enhancements and filters to your images.
Installation
You can install Image Enhancer using pip:
pip install image-enhancer
Usage
Here's a simple example of how to use Image Enhancer:
from image_enhancer import ImageEnhancer
enhancer = ImageEnhancer()
# Enhance an image from a local file
enhanced_image_path = enhancer.enhance("path/to/your/image.jpg", {
"brightness": 1.2,
"contrast": 1.1,
"sharpness": 1.5,
"saturation": 1.2
})
print(f"Enhanced image saved to: {enhanced_image_path}")
# Enhance an image from a URL
enhanced_image_path = enhancer.enhance("https://example.com/image.jpg", {
"denoise_strength": 10,
"gamma": 1.2,
"hue_shift": 10
})
print(f"Enhanced image saved to: {enhanced_image_path}")
Parameters
The enhance
method accepts the following parameters:
denoise_strength
: Strength of denoising (0-20)brightness
: Brightness adjustment (0.5-2.0)contrast
: Contrast adjustment (0.5-2.0)color
: Color enhancement (0.0-2.0)sharpness
: Sharpness enhancement (0.0-2.0)gamma
: Gamma correction (0.5-2.0)saturation
: Saturation adjustment (0.0-2.0)hue_shift
: Hue shift (-30 to 30)edge_enhance
: Edge enhancement (1.0-3.0)
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
image-enhancer-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for image_enhancer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bf2a9d4161f6ebfab2a99bb8340e83d194b112b312afd68f71cf0d225b0aa8 |
|
MD5 | 7829e9c8da9461301d878b7b103c60b7 |
|
BLAKE2b-256 | ca33a6313ff0e713ca0ab93c6a8d94efd8294625a79f363c144412c8d8656933 |