AI Agent Hub
Back to skills
Image Compression Plus icon

Image Compression Plus

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_ee3aee92/image-compression-plus using https://skillhub.cn/install/skillhub.md.

About this skill

The problem this addresses

In image workflows, teams often need to reduce file size from original PNG, JPG, or WebP assets without producing corrupt files, unusable formats, or unsupported output types such as BMP or GIF. images-compressor provides a clear compression entry point: process one input file or a directory, control quality from 1 to 100 with --quality, choose png, jpg, or webp output with --format, and write results to ./compressed/ by default.

How it works

The skill is built around Pillow for reading, compression, format conversion, and validation:

  • Input handling: accepts a single image or directory for batch processing.
  • Quality control: 85 is the default balanced setting; 90-100 suits archival use, 50-74 suits web use, and 1-49 suits thumbnails or previews.
  • Format conversion: reads and writes PNG, JPG/JPEG, and WebP; BMP and GIF can be read but should be converted to a supported output format.
  • Output validation: files are reopened after writing to reduce the risk of generated files that cannot be parsed.

Limits

It is suitable for static image compression and format normalization, not for animated GIF output, complex transparent PNG compositing, or unrelated image operations such as OCR, cropping, and resizing. For BMP or GIF inputs, expect the output to be PNG, JPG, or WebP.

Use Cases

  • Batch-compress product PNG/JPG assets to WebP before upload while keeping a quality target.
  • Archive JPG material at quality 90 into a consistent output directory.
  • Read BMP files and convert them to JPG instead of writing unsupported formats.
  • Generate small previews for a directory of images using lower quality.

Best For

  • Frontend engineers who need smaller WebP assets for web pages.
  • E-commerce operators who compress and normalize uploads before publishing.
  • Automation maintainers who batch-process image directories and avoid corrupt outputs.
  • Design collaborators who read BMP/GIF files and convert them to JPG or WebP.