baoyu-compress-image
Installation
SKILL.md
baoyu-compress-image
Auto-compresses images using the best available CLI tool on the system (sips, cwebp, convert, or sharp).
This has been specifically adapted for the Obsidian Creator Vault:
- Fast Web-focused: Defaults to generating
.jpgwith65quality (perfect for most platform limits < 1MB). - Clean Vault: When run in default mode (replace), it doesn't clutter your
Assets/with_originalfiles. Instead, it backs up the original unmodified file toArchive/Original-Images/. - Dependency Sandboxing: All runtime is wrapped through
bunand isolated inside.agents/skills.
Installation & System Requirements
This script automatically detects your OS and uses the fastest and highest quality image engine it can find in this order:
- macOS
sips(Built-in, Highly Recommended)
macOS ships withsipsnatively. No installation required.
(Under the hood:sips -s format jpeg -s formatOptions 65 <input> --out <output>)