Skip to main content

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)

Uploaded Source

Built Distribution

image_enhancer-0.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page