A simple python library for image resizing.
Project description
Easy Image Resizer
A simple Python library to resize images easily while maintaining aspect ratio, scaling by percentage, or setting explicit width/height.
Installation
pip install easy-image-resizer
(Note: Currently this is a template. You can install it locally using pip install .)
Usage
from easy_image_resizer import resize_image
# Resize with a specific width and height
resize_image("input.jpg", "output.jpg", width=800, height=600)
# Resize by percentage (e.g. 50% of the original size)
resize_image("input.jpg", "output_half.jpg", percentage=50)
# Resize by width (height is calculated automatically to maintain aspect ratio)
resize_image("input.jpg", "output_width.jpg", width=1024)
# Resize by height (width is calculated automatically to maintain aspect ratio)
resize_image("input.jpg", "output_height.jpg", height=768)
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 Distribution
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 easy_image_resizer-0.1.1.tar.gz.
File metadata
- Download URL: easy_image_resizer-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1414a39b071cda0b79184bd8514f003a193ebf9e25650a4e3fe2c2b436752047
|
|
| MD5 |
bd2375b783870fee3e85178cf9dad852
|
|
| BLAKE2b-256 |
8fcae4899f8919d65c78ea6c9dc8ef267b10da2367ed8fc6c0a04d5a15274c79
|
File details
Details for the file easy_image_resizer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: easy_image_resizer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ed133a89a00581e627622946cd990a2fb861811a6293206a6bd66d79b81f91
|
|
| MD5 |
e4dbc5e8b43b499b84fba5982df7fc44
|
|
| BLAKE2b-256 |
94d180523411fc83397d7d17c4300676d417e81e6f6bebdb6f095bff45d11bb9
|