ImgCompress
A fast, offline image compression library designed to optimize images under a size constraint while preserving maximum possible quality.
Features
- Adaptive quality optimization (maintains best possible quality)
- Supports multiple formats (JPG, PNG, BMP, GIF)
- Multi-threaded processing for faster batch compression
- Batch image selection support
- Automatic temporary file handling
Installation
pip install imgcompress
Usage
Basic Usage
imgcompress
- Opens a file dialog to select images
- Prompts for output directory
- Compresses images automatically
Output Example
Image Compression Complete
Images saved at: C:\Users\YourName\Pictures
Compression sizes compared to original:
Image Original (MB) Compressed (MB)
------------------------------------------------------------
thumbnail.png : 5.20 -> 1.85
banner.jpg : 3.10 -> 1.92
How It Works
- Loads selected images
- Resizes images (max 1280×720)
- Converts to JPEG format
- Iteratively reduces quality
- Stops at the highest quality under 2MB
Supported Formats
.jpg.jpeg.png.bmp.gif
(All outputs are saved as optimized JPEG files)
Notes
- Images already under 2MB are skipped
- Output images are compressed and may overwrite existing files if names match
- Best suited for thumbnails, web images, and quick optimization tasks
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
GNU LICENSE
Author
Built as a practical utility tool for fast and efficient image compression.
Metadata
Release files for kaiso-imgcompressor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaiso_imgcompressor-0.1.0.tar.gz | 15.5 kB | Without provenance | Details for kaiso_imgcompressor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaiso_imgcompressor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kaiso_imgcompressor-0.1.0-py3-none-any.whl |
Total release size: 32.0 kB
Release files / kaiso_imgcompressor-0.1.0.tar.gz
| Download URL | kaiso_imgcompressor-0.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4dce5186b3c53e8ffa71c5c9fd77879dfd916f40a375483251909f3ff096ec5
|
|
BLAKE2b-256 checksum How to use checksums |
3f37189d625aaa8e2581c46a7e395d785b70063a007a590d97ff409987c5c4e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / kaiso_imgcompressor-0.1.0-py3-none-any.whl
| Download URL | kaiso_imgcompressor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcf7cca2af8da5a6fa3f98779ee5cf56aa922a994b5f2700463329716fe0567f
|
|
BLAKE2b-256 checksum How to use checksums |
6b8a33dd2d906c9f868c5574a3c96c7e3ddebcb38e9a4c85e4a1c3ed762179a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for kaiso-imgcompressor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.