baoyu-compress-image

Compress images to WebP or PNG with adjustable quality settings.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/lucasFR2/LogiSync --skill baoyu-compress-image-lucasfr2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/lucasFR2/LogiSync/tree/main/skills/baoyu-compress-image
Command: npx skills add https://github.com/lucasFR2/LogiSync --skill baoyu-compress-image-lucasfr2

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the need for efficient image compression with the flexibility to choose the output format and quality, optimizing file size while maintaining visual integrity.

Core Features & Use Cases

  • Image Compression: Compress images to WebP or PNG formats.
  • Format Selection: Allows conversion to WebP or PNG based on user preference.
  • Quality Control: Offers adjustable quality settings from 0 to 100.
  • Use Case: Ideal for users looking to reduce image file sizes for web publishing or email attachments while preserving image quality.

Quick Start

Compress the image 'profile.jpg' to WebP format with 90% quality: compress-image {baseDir}/scripts/main.ts profile.jpg --format webp --quality 90

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 or PNG while controlling quality?

To compress images to WebP or PNG, you can use an automation script that selects the best available tool—such as sips, cwebp, ImageMagick, or Sharp—and applies adjustable quality settings from 0 to 100 to optimize file size while maintaining visual integrity.

What is the best way to reduce image file sizes for web publishing?

The best way to reduce image file sizes for web publishing is to automate image compression with format selection, converting images to WebP or PNG formats while adjusting quality settings to shrink file size without losing visual quality.

Does this image compression approach work with Sharp and ImageMagick?

Yes, the image compression approach works with Sharp and ImageMagick, as it automates tool selection from a list of available options including sips, cwebp, ImageMagick, and Sharp to optimize images to WebP or PNG formats.

What are the limitations of using automated tool selection for image compression?

The limitation of automated tool selection for image compression is that it requires specific dependencies like bun, npx, and sharp to be installed in your environment, and it only supports optimization to WebP or PNG formats.

When do I need to convert images to WebP format?

You need to convert images to WebP format when optimizing file sizes for web publishing or email attachments, as WebP provides efficient compression while allowing adjustable quality settings from 0 to 100 to preserve visual integrity.