baoyu-compress-image

Compress images automatically using the best available tool with format and quality controls.

Updated May 5, 2025
One-click install
npx skills add https://github.com/yopitek/Obsidian --skill baoyu-compress-image-yopitek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-compress-image
Source: https://github.com/yopitek/Obsidian/tree/main/HQ/10_resources/01_AI_Skills/baoyu-skills/skills/baoyu-compress-image
Command: npx skills add https://github.com/yopitek/Obsidian --skill baoyu-compress-image-yopitek

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates the tedious task of reducing image file sizes by selecting the best available tool, saving bandwidth and storage.

Core Features & Use Cases

  • Automatic tool selection among sips, cwebp, ImageMagick, and Sharp for efficient compression.
  • Support for WebP, PNG, and JPEG formats with configurable quality.
  • Use Case: Optimize a batch of product photos for a fast-loading website.

Quick Start

Run the compressor on an image file to generate a WebP output by default.

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 or PNG automatically?

You can apply this tool to a directory with optional recursive processing to batch compress images to WebP or PNG, generating a JSON report for batch results.

What is the best way to reduce image file sizes for a website?

The best way to reduce image file sizes for a website is to use automatic tool selection among sips, cwebp, ImageMagick, and Sharp, applying configurable quality controls to WebP, PNG, or JPEG outputs.

Does Sharp support WebP compression with configurable quality?

Yes, Sharp is one of the detected tools used to compress images, supporting WebP, PNG, and JPEG formats with configurable quality settings to minimize file sizes.

Can I replace original files when compressing images in a directory?

Yes, you can replace original files during image compression as the tool implements file replacement options for both single files and recursive directory processing.

What image formats can I output when optimizing product photos?

When optimizing product photos, you can output WebP, PNG, or JPEG formats with configurable quality settings to balance visual fidelity and file size.

Why does automatic tool selection matter for image compression?

Automatic tool selection matters because it detects the best available compressor among sips, cwebp, ImageMagick, and Sharp, ensuring efficient compression without manual configuration.