Lossless image optimization for PNG, JPEG, GIF, and SVG files. Review the savings before applying — no surprises.
/optimize-images path/to/images- Scans the directory for PNG, JPEG, GIF, SVG files
- Runs optimization (ImageOptim for raster, svgo for SVG)
- Shows before/after comparison per file
- Asks for confirmation before applying
- Applies changes only with your approval
Found 15 images to optimize:
Optimizing...
product-hero.png: 1.2 MB -> 856 KB (28% reduction)
logo.svg: 45 KB -> 12 KB (73% reduction)
screenshot-1.jpg: 890 KB -> 678 KB (24% reduction)
Total savings: 582 KB (31% reduction)
Apply changes? [Y/n]
No quality loss. Just smaller files.
| Format | Tool | Reduction |
|---|---|---|
| PNG | ImageOptim | 20-40% |
| JPEG | ImageOptim | 5-15% |
| GIF | ImageOptim | 10-30% |
| SVG | svgo | 40-70% |
/plugin marketplace add vladolaru/claude-code-plugins
/plugin install image-optimizer@vladolaru-claude-code-plugins# ImageOptim CLI (macOS)
npm install -g imageoptim-cli
# SVG optimization (all platforms)
npm install -g svgoAt least one tool is required. Both for complete format support.
MIT — see LICENSE.