Baoyu Image Compressor
Compresses and converts images to WebP (default), PNG, or JPEG with automatic tool selection.
UtilitiesBeginner★ 27,392⑂ 2,989AI score 10/10Last updated: Nov 6, 2026
What it does
- Converts and compresses images to WebP (default), PNG, or JPEG to shrink file size.
- Auto-selects the best available encoder in the order
sips → cwebp → ImageMagick → Sharp. - Handles single files or entire directories, with
-rfor recursive subfolder processing. - Lets you control quality (0–100), output path, and whether to keep the original;
--jsonemits machine-readable results. - Supports per-project / XDG / home-level
EXTEND.mdfiles to set your default format, quality, and keep-original preference.
Who it's for
- Anyone shrinking images for blogs, docs, or websites.
- Frontend developers optimizing assets for faster page loads.
- Designers and writers batch-processing screenshots or mockups.
Example uses
- "Convert this screenshot to webp" →
image.png → image.webp (245KB → 89KB, 64% reduction) - "Compress the whole images folder at quality 75" → recursive run with
-r -q 75 - "Keep PNG format and don't delete the original" →
-f png --keepfor a safe optimization pass
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/JimLiu/baoyu-skills/HEAD/skills/baoyu-compress-image/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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 AI 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 - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/ - Make sure a runtime exists:
bunis used if installed, otherwisenpx -y bun. To install Bun directly:curl -fsSL https://bun.sh/install | bash. - (Optional) macOS ships with
sips; for better results install extra encoders withbrew install webp imagemagick. - Restart Claude Code, then ask something like "compress this image" and the skill will trigger automatically.
View source on GitHub ↗License: MIT