baoyu-compress-image
This skill reduces image file sizes by converting to WebP (default) or PNG using the best available compression tool on your system. Configure default formats and quality levels via preferences, and process single files or entire directories recursively.
baoyu-compress-image reduces image file sizes by converting to WebP or PNG with automatic tool selection.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-04
baoyu-compress-image reduces image file sizes by converting to WebP or PNG with automatic tool selection. This skill reduces image file sizes by converting to WebP (default) or PNG using the best available compression tool on your system. Configure default formats and quality levels via preferences, and process single files or entire directories recursively.
Use it when
- Yes.
- Yes.
Verify before relying
Read SKILL.md below before installing (2 files). Open directory: indexed for reading, not audited.
Install
JimLiu/baoyu-skills/baoyu-compress-image · repository language: TypeScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How does baoyu-compress-image reduce image file size?
baoyu-compress-image reduces image file sizes by converting images to WebP (the default format) or PNG using the best available compression tool on your system. The skill automatically selects the optimal compression method based on your system's capabilities and your configured quality settings.
Can I compress image to WebP with baoyu-compress-image?
Yes. baoyu-compress-image converts images to WebP format by default, which provides excellent compression. You can also configure it to convert to PNG if preferred. The skill handles the conversion automatically while maintaining your desired quality level.
Does baoyu-compress-image support batch compression?
Yes. baoyu-compress-image can optimize multiple images in batch mode and process entire directories recursively. This lets you compress all images in a folder and its subfolders in a single operation, making bulk image compression efficient and straightforward.
How do I adjust compression settings in baoyu-compress-image?
baoyu-compress-image allows you to configure default formats and quality levels through preferences. You can set your preferred output format (WebP or PNG), adjust compression quality, and customize other settings to match your specific optimization needs.
What formats does baoyu-compress-image convert between?
baoyu-compress-image primarily converts images to WebP or PNG formats. WebP is the default choice for maximum compression, but you can configure the skill to use PNG instead if needed for your workflow.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Image Compressor
Compresses images using best available tool (sips → cwebp → ImageMagick → Sharp).
Script Directory
Scripts in scripts/ subdirectory. {baseDir} = this SKILL.md's directory path. Resolve ${BUN_X} runtime: if bun installed → bun; if npx available → npx -y bun; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.
| Script | Purpose |
|---|---|
scripts/main.ts |
Image compression CLI |
Preferences (EXTEND.md)
Check EXTEND.md in priority order — the first one found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-compress-image/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-compress-image/EXTEND.md |
XDG |
| 3 |
(truncated - see the full file via the links below)
File tree — 2 files
skills/baoyu-compress-image/SKILL.md
skills/baoyu-compress-image/scripts/main.ts
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Compress or reduce image file size”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Baoyu Compress Image automatically reduces image file sizes by selecting the best available compression tool on your system. It converts images to WebP (default) or PNG format with configurable quality settings, and supports batch processing of directories.
Reduces image file sizes by converting to WebP (default) or PNG format, automatically selecting the best available compression tool on your system. Supports batch processing of directories, customizable quality settings, and optional preservation of originals.
Tuzi Compress Image automatically selects the best available compression tool to shrink image files while preserving visual quality. It converts images to WebP (default), PNG, or JPEG formats with customizable quality settings, and supports batch processing across directories. Preferences can be extended via configuration files for tailored compression behavior.
Extract X posts and threads into markdown files with embedded metadata like author, URL, and media. The skill handles both individual tweets and multi-tweet threads, optionally downloading images and videos to local directories while rewriting links to point to saved files. First-time setup guides you through media handling and output preferences.
Generate images from text prompts using your choice of 11+ AI providers including OpenAI GPT Image 2, Google, Azure, and DashScope. Supports reference images for identity preservation, custom aspect ratios, batch processing, and prompt files. Configure your default provider and model once, then generate single or multiple images with flexible quality and size options.
baoyu-imagine generates images from text prompts across 10+ AI providers including OpenAI GPT Image 2, Google, Azure OpenAI, and others. It supports reference images for identity preservation, batch generation, custom aspect ratios, and quality presets, with flexible configuration via local or user-home settings.
More skills baoyu-cover-image (MIT) · baoyu-xhs-images (MIT)