Documentation Index
Fetch the complete documentation index at: https://hackmamba-3f164318.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Run these first (diagnostics)
Run a few commands before you dig into a specific error; they show version, delegates, policies, and what ImageMagick thinks about your file.Linux / macOS (bash)
Linux / macOS (bash)
Windows (PowerShell)
Windows (PowerShell)
file command; magick identify already reports the detected format.Fix error messages
unable to open image … No such file or directory
unable to open image … No such file or directory
- Print where you are:
pwd(Linux/macOS) orGet-Location(PowerShell). Paths likeinput.jpgare relative to that directory. - Prefer explicit paths:
magick ./photos/input.jpg …ormagick "C:\Users\you\Pictures\My Photo.jpg" …(quotes when the path or filename has spaces). - On Windows, check drive letters and backslashes; inside WSL,
/mnt/c/...is not the same path asC:\...from Windows Explorer.
magick: not found / 'magick' is not recognized
magick: not found / 'magick' is not recognized
magick binary is not on your system PATH.Fix: Verify which version you have:convert works but magick does not, you have ImageMagick 6 installed. In version 6, the commands are standalone binaries (convert, identify, mogrify). In version 7, they are subcommands of magick (magick convert, magick identify, or just magick directly).To get version 7, see Install ImageMagick.If neither command works, ImageMagick is not installed or is not on your PATH. On Linux, check with which magick or which convert. On Windows, verify that the ImageMagick install directory is listed in your system PATH environment variable.no decode delegate for this image format
no decode delegate for this image format
libheif for HEIC, libwebp for WebP).Fix: Check which formats your build supports:- Linux / macOS
- Windows (PowerShell)
brew reinstall imagemagick usually picks up newly installed libraries. On Linux, install the delegate package (e.g., libheif-dev) and rebuild.Formats marked r-- support reading only. Formats marked rw- support reading and writing.no encode delegate for this image format
no encode delegate for this image format
libheif but not write support.Fix: Check the format’s read/write support:- Linux / macOS
- Windows (PowerShell)
r-- means read-only. You need a build with write support (rw- or rw+), or convert to a different output format.cache resources exhausted
cache resources exhausted
-limit:policy.xml file (or the policy fragment your packager uses). Find active policy paths with:- Linux / macOS
- Windows (PowerShell)
not authorized
not authorized
insufficient image data / improper image header
insufficient image data / improper image header
.jpg that contains PNG data, or a file that was only partially downloaded, triggers this error.Fix: Verify the file with identify:identify also fails, the file is damaged. Check whether the file extension matches the actual format:file command (Linux/macOS) reads the file header and reports the real format regardless of the extension. On Windows, use magick identify instead, which reports the detected format in its output.If the format doesn’t match the extension, rename the file or convert it explicitly:PNG: prefix forces ImageMagick to read the file as PNG regardless of the .jpg extension.Fix wrong-looking output
Colors look wrong after conversion
Colors look wrong after conversion
CMYK, convert explicitly:-colorspace sRGB, ImageMagick may preserve the CMYK data in the output file. Programs expecting RGB will display the colors incorrectly.Transparent areas turn black
Transparent areas turn black
-background white -flatten composites the image onto a white canvas, replacing all transparent areas before writing the JPEG.Image appears rotated or sideways
Image appears rotated or sideways
-auto-orient before any other operations:-auto-orient reads the EXIF orientation flag, physically rotates the pixels to match, and removes the flag..webp file looks wrong or viewers say it is JPEG
.webp file looks wrong or viewers say it is JPEG
output.webp, nothing errored, but the image looks like JPEG compression or tools report JFIF / JPEG inside the file.Cause: Some builds lack a WebP encode delegate. ImageMagick may still write a file with a .webp extension while encoding with another codec; the extension can lie.Fix:- Run
magick --versionand read Delegates (built-in): you should seewebpif WebP encode is native to this binary. - Run
magick identify -verbose output.webp | Select-String -Pattern 'format|mime'(orgrepon Linux/macOS). If the reported format is JPEG despite the.webpname, install a build with WebP support or write tooutput.jpguntil you upgrade.
WEBP and rw (or at least read) for the direction you need.Output file is larger than the input
Output file is larger than the input
Fix platform-specific problems
Shell interprets >, <, ^, or ! in geometry strings
Shell interprets >, <, ^, or ! in geometry strings
>, <, ^, and ! have special meaning in bash, PowerShell, and cmd. An unquoted 800x600> redirects output to a file named 600 instead of passing the string to ImageMagick.Fix:- Linux / macOS
- Windows (PowerShell)
- Windows (cmd)
Parentheses cause errors on Windows
Parentheses cause errors on Windows
( and ) for image sequence grouping. In cmd, parentheses are control characters.Fix: In cmd, escape with ^: