baoyu-compress-image

Compress images to WebP, PNG, or JPEG with quality and directory options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill 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, without significant loss of visual quality.

Core Features & Use Cases

  • Format Conversion: Converts images to WebP, PNG, or JPEG.
  • Quality Control: Allows specifying compression quality for optimal balance between size and fidelity.
  • Batch Processing: Can recursively compress all images within a directory.
  • Use Case: You have a folder of high-resolution product images for your e-commerce site. Use this Skill to compress them all into WebP format with 80% quality, significantly reducing their file size for faster website loading.

Quick Start

Compress the image located at /path/to/your/image.png to webp format with 80% 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 compress images to WebP, PNG, or JPEG format?

To compress images to WebP, PNG, or JPEG, this Skill uses command-line tools and libraries like cwebp, sips, ImageMagick, or the 'sharp' Node.js library. It supports quality adjustments and output path specification for optimizing image file sizes.

Can I batch compress images recursively in a directory?

Yes, you can batch compress images recursively within a directory. This Skill supports recursive directory processing, allowing you to optimize all images in a folder by specifying a target output path and compression quality.

How do I reduce PNG file size for web and storage without losing quality?

You can reduce PNG file size for web and storage by using this Skill to compress images with quality adjustments. It converts files using tools like ImageMagick or cwebp, balancing size reduction and visual fidelity for web content.

Do I need external executables like ImageMagick or cwebp to optimize images?

Yes, you need external executables like cwebp, sips, ImageMagick, or the 'sharp' Node.js library installed. This Skill relies on these command-line dependencies to perform efficient image manipulation and format conversion.

What is the best way to convert high-resolution product images to WebP?

The best way to convert high-resolution product images to WebP is using this Skill to specify an 80% quality target during compression. It leverages tools like cwebp or sharp to significantly reduce file size for faster website loading.