A simple image processing utility library
Project description
# Image Helpers
A simple image processing utility library.
## Features
- Resize images
- Convert image formats
- Apply blur filters
- Apply sharpen filters
## Installation
You can install the package using pip:
```sh
pip install image_helpers_system
Usage
Here are some examples of how to use the library:
Importing the Library
from image_helpers_system.image_ops import resize_image, convert_image_format, apply_blur_filter, apply_sharp_filter
Resizing an Image
Resize an image to the specified dimensions:
resize_image('input.jpg', 'output.jpg', (800, 600))
Converting Image Format
Convert an image from one format to another:
convert_image_format('input.jpg', 'output.png', 'PNG')
Applying Blur Filter
Apply a Gaussian blur filter to an image:
apply_blur_filter('input.jpg', 'output.jpg', radius=5)
Applying Sharpen Filter
Apply a sharpen filter to an image:
apply_sharp_filter('input.jpg', 'output.jpg')
Functions
resize_image(input_path, output_path, size)
Resize the image located at input_path to the specified size and save it to output_path.
input_path: Path to the input image.output_path: Path to save the resized image.size: Tuple specifying the new size(width, height).
convert_image_format(input_path, output_path, format)
Convert the image located at input_path to the specified format and save it to output_path.
input_path: Path to the input image.output_path: Path to save the converted image.format: The format to convert the image to (e.g., 'PNG', 'JPEG').
apply_blur_filter(input_path, output_path, radius=2)
Apply a Gaussian blur filter to the image located at input_path and save it to output_path.
input_path: Path to the input image.output_path: Path to save the blurred image.radius: Radius of the blur (default is 2).
apply_sharp_filter(input_path, output_path)
Apply a sharpen filter to the image located at input_path and save it to output_path.
input_path: Path to the input image.output_path: Path to save the sharpened image.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file image_helpers_system-0.1.2-py3-none-any.whl.
File metadata
- Download URL: image_helpers_system-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0036d4556a4bf234527390a6aa7d95ac04f9c9357a0ab808dedd03330171141
|
|
| MD5 |
a7c7f40ad93a7e0cdbf6fa1af5add7ed
|
|
| BLAKE2b-256 |
03db2ea7c4270a4d1a517a00ec6afbbfee2ddf2635c2ab8d084de702f7c95b6a
|