baoyu-compress-image

Compress images and convert formats using system tools.

2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/neo-unicorn/neo-skills --skill baoyu-compress-image-neo-unicorn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/neo-unicorn/neo-skills/tree/main/baoyu-compress-image
Command: npx skills add https://github.com/neo-unicorn/neo-skills --skill baoyu-compress-image-neo-unicorn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Users often need to reduce image file sizes or convert formats for faster loading and storage efficiency, but must manually choose tools and settings.

Core Features & Use Cases

  • Automatic tool selection: Chooses the best available compressor (sips, cwebp, ImageMagick, Sharp) based on platform and desired format.
  • Flexible output options: Supports WebP, PNG, JPEG with quality control and can preserve original files.
  • Batch processing: Handles single files or entire directories, optionally recursively, and can output JSON summaries.

Quick Start

Compress the file "example.png" to a smaller WebP version using the baoyu-compress-image skill.

Frequently Asked Questions about baoyu-compress-image

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

FAQPage Schema
How do I batch compress images and convert them to WebP?

To batch compress images and convert them to WebP, you can process entire directories recursively while adjusting quality settings. This functionality automatically selects the best available compressor, such as cwebp or Sharp, based on your system to reduce file sizes and optionally output JSON summaries.

Does image compression work on both macOS and Windows?

Image compression works across macOS, Linux, WSL, and Windows. The tool automatically detects your platform and selects the most appropriate available system utility, such as sips for macOS or ImageMagick, to ensure consistent batch processing and format conversion results.

What is the best way to optimize PNG files for web loading?

The best way to optimize PNG files for web loading is to use a compression tool that converts them to smaller formats like WebP or JPEG while preserving original files. This approach reduces file size significantly through quality-adjustable settings without degrading visual fidelity beyond acceptable limits.

Can I convert a single photo to WebP without losing the original file?

You can convert a single photo to WebP without losing the original file by configuring the tool to preserve source images. The process utilizes libraries like Sharp or system utilities to generate a smaller, quality-adjusted WebP version alongside your untouched original photo.

Do I need ImageMagick installed to reduce image file size?

You do not need ImageMagick installed to reduce image file size, as the tool features automatic selection among multiple compressors. If ImageMagick is unavailable, it seamlessly falls back to other supported utilities like sips, cwebp, or the Sharp library to complete the optimization.