GraphicsMagick vs ImageMagick
GraphicsMagick and ImageMagick are free, open-source toolkits for converting, editing, composing and rendering images. Both offer command-line tools, programming interfaces, batch processing, RAW support and bulk resizing.
This comparison is for people choosing an image toolkit that fits their operating system, software stack, automation needs and security setup.
GraphicsMagick
graphicsmagick.orgGraphicsMagick: free, open source, over 92 formats, gm command, broad language interfaces, Linux/macOS/Windows and self-hosting. VS I
ImageMagick
imagemagick.orgImageMagick: free, open source, over 100 formats, magick command, APIs and wrappers, Linux/macOS/Windows and self-hosting.Round by round
Pricing and licensingEven Both products are free and open source, with no free trial because there is no paid plan. GraphicsMagick uses an MIT-style license and permits use in open-source, proprietary or GPL applications. ImageMagick permits personal, internal company and commercial use, plus modification and linking with differently licensed code. Redistribution requires attribution and a license copy. Neither product has a subscription price, so the facts do not separate them on cost.
Image features and formatsImageMagick wins Both toolkits convert, resize, rotate, compose images, apply effects, create animations and support RAW processing and bulk resizing. GraphicsMagick reads, writes and manipulates over 92 major formats, including AVIF, HEIC, JPEG XL, PDF and WebP, and supports huge images. ImageMagick lists over 100 major formats, including Ultra HDR, and adds documented color management, scientific formats such as DICOM and FITS, deep-color builds, drawing, transparency and montages. ImageMagick wins because its documented format count and feature range are broader.
Command-line workflowEven GraphicsMagick uses the gm command with subcommands such as convert, mogrify, montage, composite, display, animate and import. Its mogrify command can process many files in one invocation and write results to another directory. ImageMagick uses the magick command, designed for scripted and batch image processing, and supports automated pipelines. Both provide command-line automation and batch operations.
Integrations and wrappersEven GraphicsMagick provides programming interfaces for C, C++, Lua, Perl, PHP, Python, Tcl, Ruby, Go, Node.js, Redis, .NET and Windows COM; some are maintained by third parties. ImageMagick provides native C, Magick++, PerlMagick and bindings or wrappers for PHP, Python, Ruby, Java and .NET, including Magick.NET. Both can be embedded in applications through language interfaces, and each covers several common languages. Because their integration approaches differ without a clear overall advantage in the facts, this round is a tie.
Platforms and self-hostingEven Both products run on Linux, macOS and Windows, offer API access and support self-hosted installation. GraphicsMagick states that it compiles on modern Unix-like systems and Windows 10 or later, with source and binaries available for local builds. ImageMagick can be built from source on Linux, macOS, Windows and other Unix-like systems; Windows builds support Windows 10 or newer and Windows Server 2012 or newer. ImageMagick provides an AppImage for Linux, while GraphicsMagick lists downloadable binaries. Neither is clearly broader overall.
Documentation and supportEven GraphicsMagick includes an HTML reference, gm manual page, FAQ, API references, installation instructions, NEWS files and ChangeLogs. It recommends updating because significant issues are addressed in almost every release. ImageMagick provides documentation, forums, bug reporting, GitHub issue reporting and a discussions forum, with donation-based support rather than subscription plans. Both document their tools and provide ways to report problems. The facts do not establish that either project offers better support, so the winner is a tie.
Security controlsImageMagick wins GraphicsMagick warns that hostile files or URLs can cause crashes, memory leaks, resource exhaustion, infinite processing or code execution, so untrusted input needs isolation and limits. It reports OSS-Fuzz and sanitizer testing but does not currently author CVEs. ImageMagick also warns that its default open policy allows broad functionality and advises configuring a security policy. Its policy.xml can restrict formats, delegates, paths, memory, disk, runtime and image-list length, with open, limited, secure and websafe options. ImageMagick wins for documented controls.
Programming APIsGraphicsMagick wins GraphicsMagick offers a low-level C core API, a mid-level C Wand API, PerlMagick and interfaces for C++, Lua, Perl, PHP, Python, Tcl/Tk, Ruby, Go, Node.js, Redis, .NET and Windows COM. It explicitly targets stable programming APIs and ABI compatibility across managed releases. ImageMagick provides native C, Magick++, PerlMagick and bindings or wrappers for PHP, Python, Ruby, Java and .NET. GraphicsMagick wins on the breadth of listed interfaces and its stated API and ABI stability target.
The facts side by side
- Free tierPriceFree tier
- —Public API—
- YesOpen sourceYes
- YesFree tierYes
- NoFree trialNo
- —Web—
- ✓Windows✓
- ✓Mac✓
- ✓Linux✓
- —iOS—
- —Android—
- ✓Free plan✓
- ✓RAW processing✓
- —Bulk renaming—
- ✓Bulk resizing✓
- —Watched folders—
- preset-basedBatch automation levelfully automated
- #2Standing on Batch Photo Processing Software#1
- Pick GraphicsMagick if
- You want an MIT-style license for proprietary or GPL applications.
- You need the gm command, broad language interfaces or stable API and ABI targets.
- You prefer a toolkit documented for huge images and OpenMP CPU scaling.
- Pick ImageMagick if
- You need over 100 listed formats or specialist formats such as DICOM and FITS.
- You want policy.xml controls for formats, paths, memory, disk and runtime.
- You prefer the magick command and Magick.NET wrapper.
By what you need
- GraphicsMagickProprietary application. GraphicsMagick’s MIT-style license permits use in proprietary applications.
- ImageMagickSpecialist image formats. ImageMagick lists over 100 formats, including DICOM, FITS, Ultra HDR and DPX.
- ImageMagickSecurity policy controls. ImageMagick documents policy.xml restrictions for formats, paths, memory, disk and runtime.
- GraphicsMagickStable programming interfaces. GraphicsMagick explicitly targets stable APIs and ABI compatibility across managed releases.
- EitherGeneral batch conversion. Both provide command-line batch processing, scripting, format conversion and bulk resizing.
Verdict. Choose GraphicsMagick for its MIT-style licensing, wide set of listed language interfaces, stable API and ABI goal, and tools for huge images. Choose ImageMagick when you need the broader stated format list, specialist formats, color-management options or detailed policy.xml resource controls. Both are free, open source, self-hostable on Linux, macOS and Windows, and suitable for scripted batch work, RAW processing and bulk resizing. For general conversion and automation, either can fit; the deciding factors are licensing details, format needs, interface preferences and security configuration.
Questions
Are GraphicsMagick and ImageMagick free?
Yes. Both are free, open-source software with no paid plan or free trial.
Which supports more image formats?
ImageMagick states support for over 100 major formats. GraphicsMagick states support for over 92 major formats.
Can both process images in batches?
Yes. GraphicsMagick’s gm mogrify handles many files in one invocation, and ImageMagick’s magick command supports scripted batch pipelines.
Which has stronger security controls?
ImageMagick documents policy.xml settings that restrict formats, delegates, paths, memory, disk, runtime and image-list length.
Do both work with programming languages?
Yes. Both provide C and other language interfaces. GraphicsMagick lists Go, Node.js and Redis; ImageMagick lists Java and Magick.NET.