ImageMagick
$ magick Foundation Med RiskImageMagick v7 (magick) resizes, crops, composites, converts between 200+ raster/vector formats, and inspects dimensions/EXIF via magick identify. Agents can use identify -format for compact structured output and watch security policy.xml limits on untrusted inputs.
brew install imagemagick Local batch image resizing, format conversion, and magick identify checks run cleanly in shell without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive and deterministic with magick identify -format, though lacks native JSON output (other than experimental json: coder).
- Non-interactive;
magick identify -formatsupports custom field formatting
Writes output files directly (and mogrify overwrites in-place); complex coder delegates (SVG/PDF/MVG) historically require policy.xml hardening on untrusted inputs.
- Local writes (
mogrifymutates in-place);policy.xmlgoverns risky decoders
Widely packaged on macOS (brew), Linux, and Windows, though v6 (convert/identify) vs v7 (magick) binary naming differs on older distros.
- Cross-platform binary via Homebrew and OS package managers
Massive format coverage (PNG, WebP, AVIF, TIFF, HEIC) for resizing, thumbnails, and compositing.
- Supports 200+ image formats and rich geometry operations
Long-standing ImageMagick Studio LLC project.
- Official
ImageMagick/ImageMagickrepository
Extensive docs, though legacy v6 vs v7 syntax differences and escaping (\>) trip up scripts.
- Official CLI docs at imagemagick.org
Security, Auth & Guardrails
None required; operates on local image files.
Free, ImageMagick License open-source C binary.
# ImageMagick Agent Rules - Use `magick` (v7) rather than legacy `convert` when available, and check dimensions first with `magick identify` before resizing huge images. - Avoid running `mogrify` in-place without backups—write to a new output filename with `magick input out`.
Agent-Ready Command Recipes
Safe Read-Only Queries
magick identify -format '%m %wx%h %b\n' image.png
Prints image format, width/height, and byte size cleanly via -format.
Controlled Writes & Previews
magick input.png -resize 1200x1200\> -quality 85 thumb.webp
Downscales input.png only if larger than 1200px (>) and writes thumb.webp.
Strengths for Agents
- + Supports 200+ image formats including WebP, AVIF, and HEIC.
- +
magick identify -formatchecks dimensions and color spaces quickly without touching files.
Caveats & Pitfalls
- ! Older Linux distros ship ImageMagick v6 (
convert/identify) instead of v7magick. - !
mogrifyoverwrites images in place; prefer explicitmagick src dst.