baoyu-compress-image

Compress image files using the best available encoder from sips, cwebp, imagemagick, or sharp.

54|18|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/open-fox/agents --skill baoyu-compress-image-open-fox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/open-fox/agents/tree/main/skills/baoyu-compress-image
Command: npx skills add https://github.com/open-fox/agents --skill baoyu-compress-image-open-fox

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Compresses images automatically to reduce file size and optimize assets, saving time in asset pipelines and web delivery.

Core Features & Use Cases

  • Automatic format selection: sips, cwebp, imagemagick, or sharp are used to minimize size.
  • Batch and single-file compression: supports individual images and directory workflows with optional recursion.
  • Use case: prepare product photos for web delivery, blogs, and apps with faster load times and smaller footprints.

Quick Start

Run the CLI with a target image file or directory to compress images to WebP or PNG using the best available tool.

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 or PNG for web delivery?

To compress images to WebP or PNG, the Skill automatically selects the best available encoder like sips, cwebp, imagemagick, or sharp. It enforces format options and quality control to reduce file size for web optimization workflows.

Can I batch compress images across folders recursively?

Yes, you can batch compress images across folders recursively. The Skill supports directory workflows with optional recursion, allowing you to process entire asset pipelines and minimize file sizes automatically.

What is the best way to integrate image compression into an asset pipeline?

The best way to integrate image compression into an asset pipeline is using automated encoder selection. The Skill evaluates sips, cwebp, imagemagick, or sharp to enforce format options and quality control for safe input handling.

Does sharp support quality control for WebP compression?

Yes, sharp supports quality control for WebP compression. The Skill uses sharp as one of its available encoders, enforcing format options and quality parameters to efficiently reduce image file size.

When do I need to convert product photos to WebP format?

You need to convert product photos to WebP format when preparing assets for web delivery, blogs, or apps. Converting images to WebP ensures faster load times and smaller file footprints for end users.

What are the limitations of using sips for image compression?

The limitation of using sips for image compression is platform availability, as it is macOS-specific. The Skill mitigates this by automatically selecting alternative encoders like cwebp, imagemagick, or sharp when sips is unavailable.