Metadata-Version: 2.1
Name: image-optimizer-samuellachisa
Version: 0.1.1
Summary: A simple package for image compression
Author: samuellachisa
Description-Content-Type: text/markdown
Requires-Dist: Pillow

# Image Optimizer Samuellachisa

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

## Installation

```bash
pip install image-optimizer-samuellachisa
```

## Usage

```python
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.
