jezweb avatar

Image Processing

This handles the bread-and-butter image work you do constantly in web projects: resize hero images, convert logos to WebP, trim whitespace from client-supplied assets, generate OG cards. It ships with a CLI tool (img-process) for standard operations and falls back to generating custom Pillow scripts when you need compositing or watermarks. The OG card generator is genuinely useful, it handles the tedious font discovery and text centering across macOS, Linux, and Windows. Quality defaults are sensible (85 for WebP, 90 for JPG), and it correctly composites RGBA to RGB when saving JPGs so you don't get the pink-background surprise. Pairs well with any image generation workflow where you need to optimize the output for production.

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

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/jezweb/claude-skills
Category
Python

More from jezweb/claude-skills

All 166

Recommended

More Python
1anthropics avatarinstrument-data-to-allotropeanthropics/knowledge-work-pluginsConvert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientist2.4Kskills.sh installs
2nvidia avatardeepstream-devnvidia/skillsNVIDIA DeepStream SDK development with Python pyservicemaker API. Use when building video analytics pipelines, GStreamer-based video processing, TensorRT infere2.4Kskills.sh installs
3huggingface avatarhuggingface-gradiohuggingface/skillsBuild Gradio web UIs and demos in Python. Use when creating or editing Gradio apps, components, event listeners, layouts, or chatbots.2.4Kskills.sh installs
4alirezarezvani avatarengineering-skillsalirezarezvani/claude-skillsIndex of the engineering-team skills bundle for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw, and 6 more tools. Architecture, frontend, backend, QA, DevOps,2.4Kskills.sh installs
5mindrally avatarodoo-developmentmindrally/skillsExpert guidance for Odoo ERP development including Python ORM, XML views, and module architecture2.4Kskills.sh installs
6mem0ai avatarmem0mem0ai/mem0Mem0 Platform SDK for adding persistent memory to AI applications. TRIGGER when: user mentions "mem0", "MemoryClient", "memory layer", "remember user preference2.3Kskills.sh installs