baoyu-compress-image

Compress image files to WebP, PNG, or JPEG with automatic tool selection.

333|83|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/SpaceZephyr/myskill --skill baoyu-compress-image-spacezephyr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/SpaceZephyr/myskill/tree/main/baoyu-compress-image
Command: npx skills add https://github.com/SpaceZephyr/myskill --skill baoyu-compress-image-spacezephyr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the manual effort of reducing image file sizes by turning large images into smaller, web-ready outputs with predictable quality settings.

Core Features & Use Cases

  • Automatic Format Compression: Converts images to WebP by default, or to PNG and JPEG when needed.
  • Best-Available Tool Selection: Chooses among sips, cwebp, ImageMagick, and Sharp to complete compression on different systems.
  • Batch and Recursive Processing: Handles single files or entire folders, including nested directories, for bulk optimization workflows.
  • Practical Use Case: Prepare a folder of product photos for faster website delivery while optionally keeping the originals and reviewing size reduction results.

Quick Start

Ask the Skill to compress the attached image or folder to WebP, PNG, or JPEG at your chosen quality while keeping the original if needed.

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 to WebP without losing visual quality?

Batch compress images to WebP by processing entire folders recursively while applying automatic quality control to preserve usable visual fidelity. The tool selects the best available compressor to ensure usable visual quality is maintained for web delivery.

What is the best way to optimize PNG and JPEG files for web delivery?

Optimize PNG and JPEG files for web delivery by applying automatic format compression with configurable quality settings. The process converts large images into smaller, web-ready outputs while optionally keeping the original files intact.

Can I use Sharp for image compression on different operating systems?

Sharp is fully supported for image compression across different systems. The tool features automatic best-available compressor selection with fallback support for sips, cwebp, and ImageMagick, ensuring batch processing completes regardless of your environment.

How do I convert a folder of product photos to WebP while keeping the originals?

Convert a folder of product photos to WebP while keeping the originals by enabling keep-original handling during recursive batch processing. This preserves your source images and outputs the compressed files to a custom path.

Does recursive image optimization support custom output paths and size reporting?

Recursive image optimization fully supports custom output paths and generates JSON reporting for size reduction results. This allows you to review the exact file size savings achieved during the bulk conversion workflow.