baoyu-compress-image

Compress and convert image files to WebP, PNG, or JPEG formats.

3|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/XinAloha/skills --skill baoyu-compress-image-xinaloha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/XinAloha/skills/tree/main/productivity/compress-image
Command: npx skills add https://github.com/XinAloha/skills --skill baoyu-compress-image-xinaloha

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill solves the manual overhead of resizing and converting images for web performance, ensuring your assets are optimized without needing to open heavy graphic design software.

Core Features & Use Cases

  • Multi-Tool Optimization: Automatically selects the best available engine (sips, cwebp, ImageMagick, or Sharp) to compress images.
  • Format Conversion: Easily convert between PNG, JPEG, and WebP formats.
  • Batch Processing: Handle single files or entire directories recursively to maintain consistent image quality across your project.

Quick Start

Use the baoyu-compress-image skill to compress all images in the current directory to webp format with 75 percent quality.

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 convert images to WebP for web performance?

To batch convert images to WebP for web performance, the skill recursively processes entire directories using the most efficient available system tool, allowing you to set custom quality settings like 75 percent to optimize output.

Can I compress an entire directory of images without opening graphic design software?

Yes, you can compress an entire directory of images without opening graphic design software, as the skill supports recursive directory processing to automatically optimize assets via command line interfaces.

Do I need bun or npx installed to compress image files?

Yes, you need bun or npx installed to compress image files, because the skill requires a runtime environment with bun or npx to execute the underlying image processing scripts.

What image formats can I convert using this compression tool?

You can convert images between PNG, JPEG, and WebP formats using this compression tool, which automatically selects the best available engine like sips, cwebp, ImageMagick, or Sharp to process your files.

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

The best way to optimize PNG and JPEG files for web delivery is using an automated CLI tool that converts assets to WebP format with custom quality settings, bypassing heavy graphic design software entirely.