canghe-compress-image
CommunityAuto-compress images with smart tool selection.
Authorfreestylefly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Compresses images to WebP (default) or PNG with automatic tool selection to reduce file size without compromising quality.
Core Features & Use Cases
- Automatic tool selection (sips on macOS, cwebp for WebP, ImageMagick for wide format support, or Sharp for non-destructive processing) to optimize images efficiently.
- CLI supports single-file and directory processing with optional recursive traversal, output customization, quality controls, and the ability to keep originals.
- Use Case: photographers and content creators can batch-compress photo collections for web publishing or app delivery while maintaining acceptable visual quality.
Quick Start
Run the CLI on an image or a directory to automatically compress it to WebP (or PNG/JPEG per your choice) using the best available tool.
Dependency Matrix
Required Modules
sharp
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: canghe-compress-image Download link: https://github.com/freestylefly/canghe-skills/archive/main.zip#canghe-compress-image Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.