baoyu-compress-image

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

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/Dante-dan/dan-skills --skill baoyu-compress-image-dante-dan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/Dante-dan/dan-skills/tree/main/vendor-backup/baoyu-compress-image
Command: npx skills add https://github.com/Dante-dan/dan-skills --skill baoyu-compress-image-dante-dan

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill reduces image file sizes and converts images into efficient formats without requiring users to manually choose compression tools or settings.

Core Features & Use Cases

  • Automatic Compression Pipeline: Selects the best available image processing tool from sips, cwebp, ImageMagick, or Sharp for optimized output.
  • Format Conversion and Optimization: Converts images to WebP, PNG, or JPEG with configurable quality, metadata handling, and batch processing support.
  • Use Case: Prepare a website's image library by recursively compressing assets, reducing storage costs, and improving page loading performance.

Quick Start

Use the image compression skill to optimize the images in my project folder and convert them to 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 batch compress images and convert them to WebP for web development?

Image compression for web development reduces file sizes while maintaining visual quality. This skill automatically selects the best available tool like cwebp or Sharp to convert and optimize assets recursively, improving page loading performance and reducing storage costs.

Does Sharp support configurable quality and metadata handling for image optimization?

Yes, Sharp supports configurable quality, metadata handling, and output options for image optimization. The skill uses Sharp as a fallback tool to compress and convert images into efficient formats like WebP, PNG, or JPEG without manual configuration.

What is the best way to reduce image file sizes without manually choosing compression tools?

The best way to reduce image file sizes without manual tool selection is using an automatic compression pipeline. This skill evaluates sips, cwebp, ImageMagick, and Sharp to apply the optimal image processing tool for format conversion and asset optimization.

Can I recursively process a website's image library for asset optimization?

Yes, you can recursively process a website's image library for asset optimization. The skill handles batch processing scenarios, compressing image files and converting formats across entire project folders to reduce storage costs and improve web performance.

What image formats are supported for conversion during the compression process?

Supported image formats for conversion include WebP, PNG, and JPEG. The skill applies format conversion and optimization automatically, selecting the most efficient output format based on your configurable quality and metadata handling preferences.