A powerful Python tool that optimizes images for web use while maintaining excellent visual quality. Features intelligent file management, perfect aspect ratio preservation, and multiple output formats.
- Smart Quality Control: 4 quality levels (Low/Medium/High/Highest)
- Aspect Ratio Preservation: Resize while maintaining perfect proportions
- Multiple Formats: Keep original, convert to WebP, or standardize to JPEG
- Auto Input Cleanup: Purge processed files from input folder
- Batch Processing: Handle entire folders with subdirectories
- Modern Format Support: JPEG, PNG, WebP, BMP, TIFF, HEIC/HEIF*
- Configuration Presets: Save and load your preferred settings
*HEIC/HEIF requires optional pillow-heif
package
# Install dependencies
pip install Pillow pillow-heif
# Run optimizer
python image_optimizer.py
friendly_image_optimizer/
├── friendly_image_optimizer.py
├── input/ # Your images here
├── output/ # Optimized results
└── backups/ # Originals (if enabled)
🔍 Found 15 image(s) to optimize
✅ Successfully processed: 15/15 images
📊 Total size: 95.2 MB → 22.1 MB (76.8% compression)
💾 Space saved: 73.1 MB