๐ซ The Pain Point
Your website takes 10 seconds to load because you uploaded 5MB raw images. Google penalizes slow sites. Customers leave.
๐ Agentic Solution
Optimizer: Removes redundant data and applies compression algorithms.
Key Features:
- Optimization: Reduces size by ~70%.
- Batch: Optimize entire media library.
โ๏ธ Phase 1: Commander (Quick Fix)
For a quick fix.
Prompt:
โCompress all images in this folder to Quality 70 using Pillowโs
optimizeflag. Save to โOptimizedโ folder.โ
Result: Fast-loading images.
๐๏ธ Phase 2: Architect (Permanent Tool)
For Web/SEO Pros.
Engineering Prompt:
**Role:** Python Image Optimizer
**Task:** Create a "Batch Image Compressor".
**Requirements:**
1. **GUI:**
* Select Folder.
* Slider: Compression Level (0-100, default 75).
* "Compress" button.
2. **Logic:**
* Use `Image.save(..., optimize=True, quality=level)`.
* Calculate space saved.
* Support JPG/PNG.
3. **Deliverables:** `compressor.py`, `run.bat` (Windows), `run.sh` (Mac).
๐ง Prompt Decoding
- Quality 75: The โSweet Spotโ for web images. It looks identical to Quality 100 to the human eye but is half the file size.
๐ ๏ธ Instructions
- Copy Prompt -> Paste -> Run.
- Select Folder -> Compress.