Metadata-Version: 2.4
Name: imgopt-cli
Version: 1.0.0
Summary: A high-performance CLI tool to batch optimize images for the web.
Author: Ahmed Samy El-khouly
License: MIT License
        
        Copyright (c) 2025 Ahmed Samy El-khouly
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/ahmedthebest31/imgopt
Project-URL: Bug Tracker, https://github.com/ahmedthebest31/imgopt/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pillow>=10.3.0
Dynamic: license-file

# imgopt 🚀

**The Intelligent WebP Converter for Modern Web Development.**

`imgopt` is a high-performance, accessibility-first CLI tool designed to batch convert and optimize images (PNG, JPG, TIFF) into efficient WebP format. It features smart resizing, concurrency for speed, and an interactive wizard mode.

## Features ✨

-   **Batch Processing:** Convert hundreds of images in seconds using multi-core processing.
-   **Smart Resizing:** Automatically downscale images to a target width (e.g., 1920px) while maintaining aspect ratio.
-   **Interactive Wizard:** No need to memorize flags; just run `imgopt` and follow the prompts.
-   **Accessibility Friendly:** Screen-reader friendly outputs and audio cues upon completion.
-   **Safe:** Never overwrites your original files.

## Installation 📦

You can install `imgopt` directly from PyPI (coming soon) or from source:

```bash
pip install .
```

## Usage 🛠️

### Interactive Mode (Wizard)
Just run the command without arguments:
```bash
imgopt
```

### Quick CLI Mode
Optimize all images in a folder to 80% quality WebP, max width 1920px:
```bash
imgopt ./photos
```

### Advanced Usage
```bash
# Custom output folder, no resizing, 90% quality
imgopt ./raw_images --output ./web_ready --width 0 --quality 90

# Quiet mode (no per-file logs)
imgopt ./assets --quiet
```

## Requirements
-   Python 3.8+
-   Pillow

## License
MIT License. See [LICENSE](LICENSE) for details.
