Baoyu Compress Image
Compresses and converts images to WebP, PNG, or JPEG using whichever optimizer is available on your machine.
UtilitiesBeginner★ 24,749⑂ 2,764AI score 7/10Last updated: Jul 4, 2026
What it does
Compresses images to WebP (default), PNG, or JPEG. It auto-detects the best available tool in the order sips → cwebp → ImageMagick → Sharp, so it works with little to no setup.
- Control quality (0–100), output path, and target format
- Batch process folders, including subfolders with
-r - Preserve originals with
--keep, emit machine-readable results with--json - Pin default format, quality, and keep-original policy via
EXTEND.mdat project, XDG, or home scope
Who it's for
- Writers and documenters who need lighter screenshots
- Web developers bulk-converting assets to WebP for faster page loads
- Content creators tired of manually optimizing images
Examples
- "Compress this screenshot" →
image.pngbecomesimage.webpwith output like245KB → 89KB, 64% reduction - "Recursively compress ./images at quality 75" → handles nested folders in one pass
- "Keep PNG format and don't delete the original" → runs with
-f png --keepfor a safe optimization
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-compress-image folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-compress-image/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r /tmp/baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/ - Ensure a runtime: check
bun --version; if missing,npx -y bunis used automatically, or install bun withcurl -fsSL https://bun.sh/install | bash. - Restart Claude Code and ask "compress this image" to verify.
- (Optional) Create
~/.baoyu-skills/baoyu-compress-image/EXTEND.mdto set your default format and quality.
View source on GitHub ↗License: MIT