Skip to content
Development
Skill

/imagemagick-cli

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

From plugin
game-dev-skills
11317 skills4 agents

Claude Code

$ npx -y skills add Yuki001/game-dev-skills --skill imagemagick-cli --agent claude-code

SKILL.md

imagemagick-cli.SKILL.md
name: imagemagick-cli
description: 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 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.

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

1. 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](https://imagemagick.org/download). 2. Inspect the input with `magick identify -ping` or `magick identify -verbose` when metadata, alpha, profiles, pages, or frames matter. 3. Read the relevant reference below, construct an ImageMagick 7 command for the user’s shell, and preserve originals unless in-place editing is explicit. 4. 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.

Shell forms

PowerShell:

$magick = (Get-Command magick -ErrorAction Stop).Source
& $magick "input image.png" -auto-orient -resize "1600x1600>" "output image.jpg"

Pass parentheses as literal arguments:

& $magick "background.png" "(" "overlay.png" -resize "25%" ")" `
  -gravity southeast -geometry "+24+24" -compose over -composite "result.png"

Bash/zsh:

magick "input image.png" -auto-orient -resize '1600x1600>' "output image.jpg"
magick background.png \( overlay.png -resize 25% \) \
  -gravity southeast -geometry +24+24 -compose over -composite result.png

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/geometry-resize-crop.md` — fit/fill/exact resize, thumbnails, resampling filters, density, orientation, crop/page/extent, advanced trim, borders, tiling, and framing.
  • `references/color-tone-quantize.md` — colorspaces, ICC, channels, alpha, grayscale, levels, histogram operations, thresholds, palettes, and dithering.
  • `references/compose-mask-layers.md` — compose operators, placement, opacity, alpha/read/write masks, background removal, chroma key, hole filling, regions, clones, layers, watermarks, and shadows.
  • `references/draw-text-canvas.md` — canvases, gradients, patterns, fonts, label/caption/annotate, Pango, form filling, gravity, symbols, MVG, paths, and text effects.
  • `references/filters-effects-morphology.md` — blur, sharpen, denoise, convolution, edge/Hough detection, morphology kernels and pattern matching, deskew, CLAHE, shade, and photographic effects.
  • `references/distort-map-fx.md` — affine/SRT, perspective, lens correction, control points, virtual pixels, displacement/absolute/variable-blur maps, `-evaluate`, `-function`, `-fx`, and sparse color.
  • `references/animation-montage-compare.md` — frame metadata, coalesce/disposal, animation edits/merging/optimization, video palettes/deinterlacing, contact sheets, metrics, diffs, and subimage search.
  • `references/batch-performance-security.md` — safe PowerShell/Bash batching, `mogrify`, naming, resource limits, concurrency, policies, temporary files, and failure logs.
  • `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, reflec
Read more
@yuki001
Ships withgame-dev-skills

This is my personal agent skill repository, primarily focused on game development.

11317 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
113
Star history of Yuki001/game-dev-skills on GitHub, a chart by star-history.com

Other skills on game-dev-skills.

gat-design

gat-design

Design one system within a specific milestone's scope: write the milestone-scoped system GDD, content data, and system art doc,…

gat-milestone

gat-milestone

Plan milestone slices from overview + narrative alone (no system GDDs required), create per-milestone directory skeletons and…

gat-story

gat-story

Develop game story and narrative through one-question-at-a-time writer interviews. Produces narrative docs under gat/narrative/…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about imagemagick-cli.

Which coding agents can use imagemagick-cli?
imagemagick-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.