Image Compression Plus
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:
85is the default balanced setting;90-100suits archival use,50-74suits web use, and1-49suits 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.
Related Skills
A ComfyUI image-generation skill that uses a five-step dialog to collect prompts, prefill templates, confirm parameters, submit API jobs, and return results.
A design-system guidance skill for Impeccable that produces token-based rules, component states, accessibility criteria, and QA checklists.
Director-level video lapian that diagnoses material precision, then produces frame evidence, director analysis, a style bible, and a showcase video.
Plan and brief Amazon MAIN, Listing, and A+ image sets from verified product facts, then return plan and image QA status.