processing-images
Image processing toolkit awareness. Use when: user uploads images for manipulation, requests format conversion, batch processing, compositing, resizing, optimization, analysis, effects, metadata inspection, montages, animated GIFs, color correction, or any image-related task. Also use when working with screenshots, photos, diagrams, icons, or visual assets. Triggers on 'resize', 'crop', 'convert', 'compress', 'optimize', 'thumbnail', 'watermark', 'montage', 'collage', 'gif', 'sprite sheet', 'color space', 'metadata', 'EXIF', 'compare images', 'diff', 'overlay', 'composite', 'batch process', 'image analysis', 'histogram', 'blur', 'sharpen', 'rotate', 'flip', 'border', 'shadow', 'round corners', 'favicon', 'icon set'.
What this skill does
# Image Processing Tools
This container has a rich image processing toolkit. Before writing any image code, scan this inventory to pick the best tool for the job — don't default to Pillow for everything.
## Tool Selection by Task
### Format Conversion & Batch Operations
**ImageMagick `convert`** is the default choice. Handles 260+ formats, single command, no code needed.
```
convert input.png output.webp
convert input.png -quality 85 output.jpg
mogrify -format webp *.png # batch in-place
```
For animated formats (GIF↔WebP↔APNG, video↔frames), prefer **ffmpeg**.
### Resize, Crop, Thumbnails
**ImageMagick** for CLI one-liners. **Pillow** when already in Python pipeline.
```
convert input.jpg -resize 800x600 output.jpg # fit within box
convert input.jpg -resize 800x600^ -gravity center -extent 800x600 output.jpg # fill+crop
convert input.jpg -thumbnail 200x200^ -gravity center -extent 200x200 thumb.jpg
```
IM supports 30+ resize filters: `-filter Lanczos` (sharp downscale), `-filter Mitchell` (balanced), `-filter Point` (nearest-neighbor/pixel art).
### Compositing & Overlays
**ImageMagick `composite`** or `convert` with `-composite`. Supports all Porter-Duff modes.
```
composite -gravity southeast watermark.png photo.jpg output.jpg
convert base.png overlay.png -gravity center -composite result.png
```
For complex multi-layer work or programmatic positioning, use **Pillow** (`Image.paste`, `Image.alpha_composite`).
### Montages, Collages, Contact Sheets
**ImageMagick `montage`** — purpose-built for grid layouts.
```
montage *.jpg -geometry 200x200+5+5 -tile 4x3 sheet.jpg
montage *.png -label '%f' -geometry +4+4 catalog.png
```
### Animated GIFs & Frame Sequences
**ImageMagick** for simple GIF assembly. **ffmpeg** for anything involving timing control, video sources, or optimization.
```
convert -delay 10 -loop 0 frame_*.png animation.gif # IM
ffmpeg -framerate 10 -i frame_%03d.png -vf palettegen palette.png && \
ffmpeg -framerate 10 -i frame_%03d.png -i palette.png -lavfi paletteuse output.gif # optimized
```
**imageio** is convenient for frame-sequence GIFs from Python arrays.
### Image Analysis & Measurement
**`identify`** for quick metadata and stats. **OpenCV** for structural analysis. **scikit-image** for scientific measurement.
```
identify -verbose image.png # full metadata dump
identify -format '%wx%h %[colorspace] %[depth]bit' image.png # targeted
```
- **OpenCV** (`cv2`): histograms, contour detection, template matching, edge detection, color distribution
- **scikit-image** (`skimage`): region properties, morphology, thresholding (Otsu, adaptive), feature detection (SIFT via OpenCV, ORB), SSIM comparison
- **scipy.ndimage**: convolution, interpolation, labeling connected components
### Image Comparison & Diffing
**ImageMagick `compare`** produces visual diffs directly.
```
compare image1.png image2.png diff.png
compare -metric RMSE image1.png image2.png null: 2>&1 # numeric similarity
```
For structural similarity: `skimage.metrics.structural_similarity` (SSIM).
### Color Operations
**ImageMagick** handles color space conversion, channel manipulation, color quantization.
```
convert input.jpg -colorspace Gray output.jpg
convert input.png -colors 16 reduced.png # quantize
convert input.jpg -modulate 110,130,100 output.jpg # brightness,saturation,hue
convert input.png -channel R -separate red_channel.png
```
For programmatic color analysis (dominant colors, palettes): **OpenCV** k-means on pixel arrays, or **Pillow** `getcolors()`.
### Effects & Filters
**ImageMagick** has extensive built-in effects:
```
convert in.png -blur 0x3 out.png # Gaussian blur
convert in.png -sharpen 0x1 out.png
convert in.png -shadow 60x4+2+2 out.png # drop shadow
convert in.png -vignette 0x40 out.png
convert in.png -sketch 0x10+120 out.png
convert in.png -charcoal 2 out.png
convert in.png -edge 1 out.png
convert in.png -emboss 1 out.png
convert in.png \( +clone -background black -shadow 60x4+0+0 \) +swap -background none -layers merge +repage rounded.png
```
For advanced/custom convolution kernels: **scipy.ndimage** or **OpenCV**.
### Metadata & EXIF
**`identify -verbose`** reads all metadata. **Pillow** reads/writes EXIF programmatically.
```
identify -verbose image.jpg | grep -A20 'Properties:'
```
```python
from PIL import Image
img = Image.open("photo.jpg")
exif = img.getexif() # dict-like access to EXIF tags
```
Note: no `exiftool` in this container. Use `identify` or Pillow for metadata tasks.
### Icons, Favicons, App Icons
**ImageMagick** generates multi-size ICO files directly.
```
convert icon.png -define icon:auto-resize=256,128,64,48,32,16 favicon.ico
```
For icon sets (iOS/Android), batch-resize with `convert` or `mogrify` to each required size.
### PDF & EPS (limited)
ImageMagick can read/write PDF and EPS but **Ghostscript is not installed** — complex PDF rasterization may fail. For PDF-to-image, prefer **Pillow** (for simple cases), **pdfplumber** (text/table extraction), or the **pdf skill** (for full PDF manipulation). IM's built-in PDF delegate handles basic operations.
### Seam Carving (Content-Aware Resize)
ImageMagick has **Liquid Rescale** (LQR) built in:
```
convert input.jpg -liquid-rescale 80x100%! output.jpg # shrink width 20%, preserve content
```
### SVG Handling
ImageMagick rasterizes SVG via its built-in delegate. For SVG→PNG at specific sizes:
```
convert -density 300 input.svg -resize 800x output.png
```
No Inkscape or rsvg-convert available. For SVG manipulation, work with the XML directly or use Python's `lxml`.
## Complete Tool Inventory
| Tool | Type | Key Strength |
|---|---|---|
| **ImageMagick 6.9** | CLI suite | 260 formats, effects, compositing, batch ops |
| **ffmpeg** | CLI | Video/animation, frame extraction, optimized GIFs |
| **Graphviz** | CLI | Diagram→image rendering (dot, neato, etc.) |
| **LibreOffice** | CLI | Document→image conversion |
| **Pillow 12.1** | Python | General-purpose, EXIF, drawing, WebP/AVIF, freetype |
| **OpenCV 4.13** | Python | Computer vision, histograms, contours, morphology |
| **scikit-image 0.26** | Python | Scientific analysis, SSIM, segmentation, features |
| **Wand 0.6** | Python | Full ImageMagick API from Python |
| **imageio 2.37** | Python | Unified I/O, GIF frame sequences |
| **scipy.ndimage** | Python | Convolution, interpolation, labeling |
| **numpy** | Python | Raw pixel array math |
| **reportlab** | Python | PDF generation with embedded images |
## Key Constraints
- **No Ghostscript** — PDF/EPS rasterization is limited to IM's built-in delegate
- **No potrace/autotrace** — bitmap-to-vector tracing unavailable
- **No standalone optimizers** — no optipng, pngquant, jpegoptim, gifsicle (use IM quality settings or ffmpeg instead)
- **No exiftool** — use `identify` or Pillow for metadata
- **No Inkscape** — SVG manipulation is XML-level only
- **HEIC/AVIF read-only** in ImageMagick; Pillow supports AVIF read/write
- **ImageMagick is v6** — use `convert`/`identify` commands, not `magick` (v7 syntax)
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".