baoyu-compress-image
Compress images to WebP or PNG with automatic tool selection
Install
See the repository for setupWhat it does
This skill provides a command-line workflow for reducing image file sizes by converting them to WebP by default or to PNG/JPEG when needed. It is aimed at users who want a quick way to optimize screenshots, photos, or asset folders from inside an AI coding agent rather than manually opening image editing software. The skill picks an available backend automatically, trying sips, then cwebp, ImageMagick, and Sharp in order. It runs through a TypeScript script using bun, or npx bun when bun is not installed, so a Node environment is required. It accepts either a single file or a directory, with options for output path, format, quality (default 80), keeping the original, recursive processing of subdirectories, and JSON output. Default preferences for format, quality, and keep-original behavior can be set in an EXTEND.md file found at project, XDG, or home locations. It reports before/after sizes and percentage reduction. Limitations: it is distributed as part of a larger skills collection installed through the skills CLI, and it requires one of the supported compression tools or Sharp to be available. It is not a hosted image service and does not itself manage uploads or CDN delivery.
Skill files
- SKILL.md
Repository data
- Stars
- 27,823
- Last push
- Nov 20, 2026
- License
- MIT
- Archived
- No
Tools similar to baoyu-compress-image
FAQ
- What license does baoyu-compress-image use?
- MIT
- What files are included with baoyu-compress-image?
- SKILL.md
Embed a listing badge
<a href="https://aiagentsmarketplace.dev/skills/baoyu-compress-image"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
Comments
No comments yet.