image-optimize

Optimize and compress image files by converting formats and stripping metadata with CLI tools.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/cosmicdreams/claude-plugins --skill image-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-optimize
Source: https://github.com/cosmicdreams/claude-plugins/tree/main/lib/skills/image-optimize
Command: npx skills add https://github.com/cosmicdreams/claude-plugins --skill image-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves bloated image files by selecting the best compression and conversion tool per image format so you can reduce size without unnecessary quality loss.

Core Features & Use Cases

  • Format-aware optimization: Routes JPEG, PNG, WebP, AVIF, GIF, HEIC, TIFF, BMP, ICO, PSD, SVG, and APNG to specialist CLI tools instead of a generic one-size-fits-all approach.
  • Lossless vs lossy control: Uses safe lossless methods first (e.g., JPEG lossless optimization) and escalates to lossy re-encoding only when more reduction is needed.
  • Metadata stripping: Removes EXIF/metadata to reduce size and improve privacy, using the best available tool for each format.
  • Batch processing workflows: Optimizes or converts multiple images in a directory when you need consistent results.

Quick Start

Optimize your images by telling the AI: "Compress image.png for the web and strip metadata, writing optimized output files next to the original."

Frequently Asked Questions about image-optimize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert and compress images to WebP or AVIF formats?

Image optimization routes JPEG, PNG, and GIF files to specialist CLI tools for WebP or AVIF conversion, applying lossless methods first and escalating to lossy re-encoding only when more size reduction is needed.

What's the best way to batch optimize a folder of images for web delivery?

Batch processing workflows optimize or convert multiple images in a directory by applying consistent format-specific compression rules, stripping metadata, and routing each file to the best specialist tool.

How does stripping EXIF metadata reduce image file size?

Stripping EXIF metadata removes embedded data from image files to reduce overall size and improve privacy, using the best available format-specific tool for each conversion.

Can I optimize PNG files without losing quality?

Lossless optimization is supported for formats like PNG, applying safe methods first before escalating to lossy re-encoding only when additional file size reduction is required.

Does this image compression approach work with GIF and APNG formats?

Format-aware optimization supports GIF conversion to WebP or APNG, routing each format to a specialist CLI tool rather than using a generic one-size-fits-all compression approach.

Why use format-specific tools instead of generic ImageMagick for image optimization?

Format-aware optimization selects the best specialist CLI tool per image format instead of a generic approach, ensuring maximum compression efficiency without unnecessary quality loss.