A Claude skill for converting and optimizing images to WebP format with batch processing support.
- 🖼️ Convert images to WebP: PNG, JPG, GIF, TIFF, BMP supported
- ⚡ Multiple backends: sharp (Node.js), cwebp, or Python fallback
- 📦 Batch processing: Process entire folders at once
- 🎛️ Quality control: Configurable compression levels
- 📊 Size reporting: Shows compression percentage for each file
A. Claude AI (Claude in the cloud )
- Download
image-to-webp.skill - Open Claude.ai
- Go to Settings → Skills
- Upload the
.skillfile
B. Claude Code or CLI (local installation)
- Download
image-to-webp.skill - Change the file extension to zip
image-to-webp.skill→image-to-webpage.zip - De compress the .zip in the
.claude/sillks/folder - remove the zip file
Convert a single image:
Convert this PNG to WebP
Process a folder:
Convert all images in /path/to/images/ to WebP
High quality conversion:
Convert this image to WebP with 95% quality
The skill tries tools in this order:
- sharp (Node.js) - Fastest, best quality
- cwebp (Google CLI) - Excellent compression
- Python/Pillow - Bundled fallback, always works
| Quality | Use Case |
|---|---|
| 75-80 | Maximum compression, acceptable quality |
| 85 | Balanced (default) |
| 90-95 | High quality, larger files |
- Single file:
filename.webp - Batch folder: Each image converted alongside original
- Reports size reduction percentage
- Claude Desktop or Claude.ai with Skills enabled
- One of: Node.js (sharp), cwebp CLI, or Python with Pillow
MIT License - See LICENSE file for details
Issues and pull requests welcome!
Created by Daniel Serrano for Claude Skills