72
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill aidotnet/moyucode --skill image-processor- SKILL.md1.1 KB
Overview
This skill processes images with common tasks like resizing, format conversion, watermarking, and thumbnail generation. It uses a Pillow-based backend and exposes commands to transform single images or produce multiple outputs. The tool is designed for quick, scriptable image workflows in CI pipelines or local processing tasks.
How this skill works
You call the provided commands to perform an operation (resize, convert, watermark, thumbnail) against an input image and write the result to an output path. The tool accepts parameters for dimensions, output format, watermark text/position, and a list of thumbnail sizes. Under the hood it loads the image, applies the requested transformation using Pillow primitives, and saves the output with the chosen format and quality settings.
When to use it
- Batch resizing photos for web galleries or responsive sites.
- Converting images to web-friendly formats like WebP for smaller payloads.
- Adding visible copyright or brand watermarks to assets before distribution.
- Generating multiple thumbnail sizes for CMS or app image feeds.
- Automating image processing in build or deployment pipelines.
Best practices
- Work on copies of originals; keep a master source to avoid quality loss from repeated edits.
- Choose an output format that matches the use case (JPEG for photos, PNG for transparency, WebP for web performance).
- Resize before converting when producing thumbnails to minimize memory and CPU.
- Apply watermarks with adjustable opacity and placement to avoid obscuring important content.
- Process images in batches and monitor memory usage for large files; prefer streaming or chunked operations where supported.
Example use cases
- Resize a portrait folder to 800 px width for an online gallery.
- Convert PNG assets to WebP to reduce page load size while preserving quality.
- Overlay a © 2024 watermark on marketing images before publishing.
- Generate 64, 128, and 256 px thumbnails for a CMS image upload endpoint.
- Integrate the command into CI to produce optimized assets during deployment.
FAQ
By default it focuses on pixel transformations; preserving EXIF may require explicit options or additional handling depending on the command.
Will repeated resizing degrade image quality?
Yes. Always keep a high-resolution master and derive different sizes from it to avoid cumulative quality loss.