baoyu-compress-image

Compress images with automatic encoder fallback and WebP conversion.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the hassle of shrinking image files while keeping the output usable for sharing, publishing, and storage.

Core Features & Use Cases

  • Automatic compression: Chooses the best available tool in order, falling back gracefully when one encoder is unavailable.
  • Format conversion: Converts images to WebP by default, with support for PNG and JPEG output when needed.
  • Batch processing: Handles single files or entire directories, including recursive folder traversal for larger image libraries.
  • Practical use case: Optimize a folder of product photos for a website, reduce load times, and keep originals when required.

Quick Start

Ask the Skill to compress your selected image or image folder to WebP with the desired quality and whether to keep the original files.

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 to WebP, process entire directories with recursive folder traversal. The tool applies automatic encoder fallback and quality control to reduce file sizes for web assets and media libraries.

Can I compress a folder of PNG images while keeping the original files?

You can compress PNG images across an entire directory while preserving original files via optional original-file preservation. The batch processing handles recursive folder traversal to optimize product photos and media libraries.

Does this image optimization tool support format conversion to JPEG and PNG?

This image optimization tool supports format conversion to WebP by default, with additional output support for PNG and JPEG. It automatically selects the best available encoder and falls back gracefully when one is unavailable.

What is the best way to reduce image file sizes for a website?

The best way to reduce image file sizes for a website is applying automatic compression with smart format fallback. Converting web assets to WebP with quality control lowers load times while maintaining usable output for publishing.

Why does image compression stop working if an encoder is missing?

Image compression fails when a required encoder is missing, but this tool applies automatic encoder fallback to prevent interruptions. It chooses the best available tool in order, falling back gracefully when one encoder is unavailable.

Are there limitations when using sharp for batch image processing?

Using sharp for batch image processing requires handling recursive folder traversal and quality control parameters. The tool manages these dependencies to optimize web assets and product photos while supporting optional original-file preservation.