New advertisers: 50% off your first month with code FIRSTMONTHSee slots
jezweb avatar

Image Processing

Command-line and Pillow-based toolkit for resizing, converting, trimming, and optimising web images without ImageMagick.

skills.sh installs
2.5K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers resize, format conversion (PNG, WebP, JPG), whitespace trimming, thumbnails, web optimisation, OG card creation, and batch runs
  • Provides the img-process CLI with subcommands such as resize, trim, thumbnail, optimise, og-card, and batch
  • Enforces RGBA-to-JPG compositing onto a white background, since JPG cannot hold transparency
  • Designed for web projects that need standard image prep, with fallbacks to sips, sharp, or ffmpeg when Pillow is unavailable

Install

$ npx -y skills add jezweb/claude-skills --skill image-processing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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).

Prerequisites

Pillow is required for both img-process and custom scripts:

pip install Pillow

If Pillow is unavailable, use alternatives:

Details

Repository
github.com/jezweb/claude-skills

More from jezweb/claude-skills

All 64

Similar to Image Processing