Skip to main content

Image Optimizer Samuellachisa

A simple and safe image compression tool using the Pillow library.

Installation

pip install image-optimizer-samuellachisa

Usage

from image_optimizer import compress_image, compare_sizes

# Compress an image
compressed_path = compress_image("input.jpg", "output.jpg", quality=70, max_width=800)

# Get stats
stats = compare_sizes("input.jpg", compressed_path)
print(f"Reduced size by {stats['reduction_percent']:.2f}%")

Features

  • Resizing while maintaining aspect ratio.
  • Quality adjustment.
  • Safety check: avoids saving if the compressed file is larger than the original.

Release files for image-optimizer-samuellachisa 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for image-optimizer-samuellachisa 0.1.1
File Interpreter ABI Platform
image_optimizer_samuellachisa-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / image_optimizer_samuellachisa-0.1.1-py3-none-any.whl

Download URL image_optimizer_samuellachisa-0.1.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
600243220c7491a7611b8c10043ae759f334ac8602b190c9d181d28b166deced
BLAKE2b-256 checksum
How to use checksums
072b087db69e0b5688a1757157413c21bdba73cbbd61274d50a5cf14428e82fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page