Comprehensive ImageMagick 7 command-line image processing for inspecting, converting, resizing, cropping, compositing, masking, drawing, annotating, color correction, quantization, filtering, morphology, distortion, animation, montage, comparison, metadata, batch automation, and advanced pixel analysis. Use whenever a task mentions ImageMagick, `magick`, `identify`, `mogrify`, raster image conversion or batch image manipulation, or when a reproducible CLI pipeline is preferable to a GUI or lang…
Use whenever a task mentions ImageMagick, `magick`, `identify`, `mogrify`, raster image conversion or batch image manipulation, or when a reproducible CLI pipeline is preferable to a GUI or language binding.
Also use for debugging ImageMagick commands, porting ImageMagick 6 `convert` syntax to version 7, choosing coder/delegate options, and safely processing untrusted or large images.
Do not use merely to edit an existing SVG as vector source or when the user explicitly requests a different image tool.
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars67
Default branchmain
Open issues0
Status
Archived
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md7,342 B
docsSUMMARY.md835 B
History
First seen on skills.sh
First recorded snapshot · 5 installs
SKILL.md
ImageMagick CLI
Use ImageMagick 7 to build, run, and verify reproducible image-processing commands. Keep the main workflow short; load the bundled reference that matches the requested operation.
Workflow
Resolve magick and run magick -version. Use scripts/resolve-imagemagick.ps1 on Windows or scripts/resolve-imagemagick.sh on Linux/macOS when discovery is uncertain. If ImageMagick cannot be found, tell the user to download and install it from https://imagemagick.org/download.
Inspect the input with magick identify -ping or magick identify -verbose when metadata, alpha, profiles, pages, or frames matter.
Read the relevant reference below, construct an ImageMagick 7 command for the user’s shell, and preserve originals unless in-place editing is explicit.
Run the command when requested, check the exit code, then verify the output with identify, compare, and visual inspection as appropriate.
Core rules
Use ImageMagick 7 syntax: magick input [operators] output and subcommands such as magick identify, magick mogrify, magick montage, magick compare, and magick stream.
Respect sequential evaluation. Put read settings such as -density, raw -size, and decoder -define values before the input they affect.
Quote all paths and shell-sensitive geometry. Use parentheses to isolate operations on overlays, masks, clones, or other nested image lists.
Treat magick mogrify as destructive unless -path writes to a separate directory.
Run -auto-orient before geometry-sensitive work on camera images.
Use +repage after crop or trim when later operations should ignore the old virtual canvas.
Manage alpha, colorspace, profiles, animation timing, and multi-page scenes deliberately; do not silently discard them.
Confirm optional formats, fonts, delegates, policies, compose methods, and kernels with the installed magick -list ... commands.
For untrusted or very large inputs, use format allowlists and limits for area, memory, map, disk, time, and threads.
Verify outputs instead of relying on file existence alone.
Prefer PowerShell over cmd.exe for complex Windows commands. In cmd batch files, use ^ for continuation and double % characters.
Command references
references/cli-foundations.md — evaluation order, settings and operators, stacks, geometry grammar, pseudo-images, streams, shell quoting, and IM6-to-IM7 conversion.
references/inspect-formats-metadata.md — identify, percent escapes, EXIF/profiles, format prefixes, multi-image I/O, common and specialist coders, delegates, encrypted images, raw data, and large streams.
references/advanced-analysis.md — histograms, pixel enumeration, connected components, convex hull, classification heuristics, kernels, FFT/HDRI, raw streaming, and calculated options.
references/photo-thumbnail-effects.md — digital-photo cleanup, selective focus/anonymization, multiple exposures, green screen, sketch/vignette work, thumbnail decoration, reflections, and constructed lighting effects.
references/options-index.md — on-demand alphabetized CLI option signatures. Search for the exact option; do not read the index end to end.
references/defines-index.md — on-demand -define keys grouped by coder or operation. Search for the coder/prefix or exact key; do not read the index end to end.
For large indexes, search before reading the entire file:
Comparison metrics commonly write to stderr, and a nonzero compare status can mean that images differ. Capture the metric and diagnostic text separately in automation.
Response style
State assumptions that affect pixels, cropping, transparency, metadata, colorspace, or animation behavior.
Give commands for the user’s actual shell.
Explain only the non-obvious ordering or operators.
Warn before destructive mogrify use.
Include verification for batch, lossy, animated, color-managed, multi-page, or security-sensitive work.