baoyu-compress-image

Compress images to WebP using sips, cwebp, ImageMagick, or Sharp.

4|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/QuestNova502/claude-skills-sync --skill baoyu-compress-image-questnova502
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/QuestNova502/claude-skills-sync/tree/main/skills/baoyu-compress-image
Command: npx skills add https://github.com/QuestNova502/claude-skills-sync --skill baoyu-compress-image-questnova502

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sharp, and includes scripts (resource) components.

What problem does it solve?

This skill simplifies the repetitive task of compressing images for WebP output, reducing file sizes while preserving quality and compatibility across platforms.

Core Features & Use Cases

  • Cross-platform image compression with WebP as the default output.
  • PNG-to-PNG passthrough support when needed.
  • Uses system tools (sips, cwebp, ImageMagick) with Sharp as a fallback for environments lacking native tools.
  • Suitable for asset pipelines, website optimization, and batch image processing.

Quick Start

Process a sample image to WebP using the default settings.

Frequently Asked Questions about baoyu-compress-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress images to WebP across different operating systems?

Compress images to WebP across platforms by auto-selecting the best available compressor, using macOS sips, cwebp, ImageMagick, or Sharp as a fallback. It processes single files or directories, reducing output sizes while preserving quality.

Can I process a whole directory of images recursively to WebP?

Yes, you can process a directory recursively to WebP. The tool handles input and output paths, quality settings, and optional recursive processing to compress batch images efficiently.

Does this image compression tool support PNG passthrough without converting to WebP?

Yes, it supports PNG-to-PNG passthrough. While WebP is the default output format, you can retain PNG format when needed, compressing the image without changing its extension.

What dependencies do I need to batch compress images if I lack native CLI tools?

If you lack native CLI tools, Sharp is used as a fallback dependency to compress images. The tool auto-selects the best available compressor from sips, cwebp, ImageMagick, or Sharp.

What is the best way to optimize website assets by reducing image file sizes?

Optimize website assets by compressing images to WebP with configurable quality settings. This reduces file sizes for web delivery while maintaining compatibility across platforms using Sharp or native system tools.