image-processing

Installation
Summary

Image resizing, format conversion, optimization, and OG card generation using Pillow.

  • Handles resize, crop, whitespace trimming, format conversion (PNG/WebP/JPG), compression, thumbnail generation, and Open Graph card creation
  • Generates Python scripts adapted to your environment; falls back to sips (macOS), sharp (Node.js), or ffmpeg if Pillow unavailable
  • Includes RGBA-to-JPG compositing, cross-platform font discovery, and format-specific quality settings (WebP 85, JPG 90, PNG optimized)
  • Supports batch processing and integrates with gemini-image-gen for post-generation optimization workflows
SKILL.md

Image Processing

Use img-process (shipped in bin/) for common operations. For complex or custom workflows, generate a Pillow script adapted to the user's environment.

Quick Reference — img-process CLI

img-process resize hero.png --width 1920
img-process convert logo.png --format webp
img-process trim logo-raw.jpg -o logo-clean.png --padding 10
img-process thumbnail photo.jpg --size 200
img-process optimise hero.jpg --quality 85 --max-width 1920
img-process og-card -o og.png --title "My App" --subtitle "Built for speed"
img-process batch ./images --action convert --format webp -o ./optimised

Use img-process when: the operation is standard (resize, convert, trim, thumbnail, optimise, OG card, batch). This is faster and avoids generating a script each time.

Generate a custom script when: the operation needs logic img-process doesn't cover (compositing multiple images, watermarks, complex text layouts, conditional processing).

Related skills
Installs
1.4K
GitHub Stars
776
First Seen
Feb 27, 2026