Image Optimization
Optimizes, converts, and resizes images across various formats using high-performance CLI tools to balance quality and file size.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Advanced compression controls including mozjpeg, progressive rendering, and chroma subsampling
- Pre-configured optimization presets for web, standard, and high-quality use cases
- Automated conversion for HEIC/HEIF formats to standard web-ready formats
- Batch processing capabilities with options for metadata preservation and custom output directories
- Performance-focused resizing with aspect ratio maintenance using sharp-cli
Use cases
- Optimizing website assets to reduce file sizes and improve page load performance
- Resizing and reformatting high-resolution images to match specific reference dimensions for UI components
- Converting batches of HEIC photos from mobile devices into optimized JPEGs or WebP images
FAQ
Which image formats are supported?
The skill supports a wide range of formats including JPEG, PNG, WebP, AVIF, and HEIC/HEIF. It utilizes advanced encoders like mozjpeg for superior compression and provides specific presets for web, standard, and high-quality use cases.
How does this skill improve my developer workflow?
Instead of switching to a GUI or manually writing complex CLI commands, you can describe your needs to Claude. It intelligently chooses optimal compression settings, handles batch processing, and ensures images match your project's technical requirements.
When should I use this skill?
Trigger this skill whenever you need to prepare images for the web, convert HEIC photos from mobile devices into standard formats, or batch-resize a large directory of assets to specific dimensions while maintaining aspect ratio.
What does the Image Optimization skill do?
This skill enables Claude to perform high-performance image processing directly from your terminal. It automates tasks like resizing, format conversion (JPEG, PNG, WebP, AVIF), and file size reduction using sharp-cli and heif-convert.
Can I preserve image metadata like EXIF data?
Yes. The skill includes built-in controls for metadata preservation. By default, it preserves metadata for 'standard' and 'high' quality presets while stripping it for 'web' presets to minimize file size.
Related skills
Slack GIF Creator
Creates custom animated GIFs and emojis optimized for Slack using a flexible toolkit of animation primitives and validators.
Design Tools12,62312 ptsGemini Image Generation
Generates and edits high-quality images from text prompts, existing photos, and real-time data using the Gemini API.
Design Tools2,82412 ptsNano Banana
Generates high-quality AI images and executes specialized Python scripts using inline dependency management and Gemini models.
Design Tools4012 pts