baoyu-compress-image

Compress images to WebP, PNG, or JPEG formats using command-line tools.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/sksdwl/shudan --skill baoyu-compress-image-sksdwl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/sksdwl/shudan/tree/main/workspace/skills/baoyu-compress-image
Command: npx skills add https://github.com/sksdwl/shudan --skill baoyu-compress-image-sksdwl

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill reduces image file sizes, saving storage space and improving loading times for web content.

Core Features & Use Cases

  • Image Compression: Compresses images to WebP, PNG, or JPEG formats.
  • Automatic Tool Selection: Uses the best available compression tool (sips, cwebp, ImageMagick, Sharp).
  • Recursive Processing: Can compress images in directories and subdirectories.
  • Use Case: You have a folder full of high-resolution photos for a website. Use this Skill to compress them all into WebP format with a quality setting of 75, ensuring fast page loads without significant visual degradation.

Quick Start

Use the baoyu-compress-image skill to compress the image file named 'vacation.jpg' to the WebP format.

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 for faster page loads?

You can compress images to WebP by specifying the format and a quality setting. This process reduces file sizes for web development, ensuring fast page loads while maintaining acceptable visual fidelity.

Can I compress an entire directory of images recursively?

Yes, recursive processing compresses images in directories and subdirectories. This handles entire folders of high-resolution photos, applying your specified format and quality settings across all files automatically.

What is the best way to reduce PNG and JPEG file sizes?

Reducing PNG and JPEG file sizes is best handled through automatic tool selection. The system evaluates and picks the best available compression library among sips, cwebp, ImageMagick, and Sharp.

Does this image compression tool work with Sharp?

Yes, image compression works with Sharp. It is one of the selected command-line tools and libraries automatically chosen to process and optimize WebP, PNG, or JPEG image files.

When do I need to convert images to WebP format?

You need to convert images to WebP format when optimizing digital assets for web development. WebP provides efficient file size reduction, which improves loading times and saves storage space.