A high-performance CLI tool to batch optimize images for the web.
Project description
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
imgoptand 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:
pip install .
Usage 🛠️
Interactive Mode (Wizard)
Just run the command without arguments:
imgopt
Quick CLI Mode
Optimize all images in a folder to 80% quality WebP, max width 1920px:
imgopt ./photos
Advanced Usage
# 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 for details.
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 imgopt_cli-1.0.0.tar.gz.
File metadata
- Download URL: imgopt_cli-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbb53c57f48a0be3d4723baa27c8bc690a47f25c1ac4620314bd6608d8c16877
|
|
| MD5 |
eea6ff457b7bff420d16f5a4ec720516
|
|
| BLAKE2b-256 |
27165913ee2af05c0d24637d3f8df4723279a66120af3176b873a4364bdbcc2e
|
File details
Details for the file imgopt_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: imgopt_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f94e6b0c249237f70efdd60f1c4c1012b2ca19a14b7d25ebb12dd2819312c509
|
|
| MD5 |
16983de887234fbeb4027ff81834eb7a
|
|
| BLAKE2b-256 |
8d08ddd83887925e2426674d35864f9cc00acab5ab5a54314e86beffc38a6462
|