COOL project provides a basic image optimization tool using Python and Pillow and is developed as a demo by Softinator.
- Install this:
pip install -r requirements.txt - Run the script:
python image_optimizer.py <input_image> <output_image> <quality>
- Example:
python image_optimizer.py landscape.jpg optimized.jpg 80
- Handles JPEG images currently.
- Quality controls compression level: lower quality = smaller file size.
Want to help out? Feel free to submit pull requests!