Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_image_resizer-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_image_resizer-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file easy_image_resizer-0.1.0.tar.gz.

File metadata

  • Download URL: easy_image_resizer-0.1.0.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

Hashes for easy_image_resizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98ba0e54287372daa875115c6c8e1abd9e6613cf9b6ccab9cdaedc79e87ae815
MD5 0ae144bbc88105c693859f2c10e53bf1
BLAKE2b-256 a04a40b078c76aecdee264338bf3319e958750e1f08fa4ebdae6e9829395c927

See more details on using hashes here.

File details

Details for the file easy_image_resizer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_image_resizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab5262913396ab309e06612b72bf4ac1d9dd0b3ead61725e2694845fe0c87a6
MD5 97a12329b36793e17c84cd49f0db46c0
BLAKE2b-256 ee486538eef915a84a3437109d117abd85004e31d5a241a27635c127897f5b3d

See more details on using hashes here.

Supported by

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