The open-source suite for image creation, conversion, and batch manipulation
open sourceImageMagickself-hostablefree
ImageMagick is a free, open source suite for creating, editing, converting and composing images in over 200 formats, including JPEG, PNG, GIF, TIFF, WebP, AVIF, HEIC and Ultra HDR. Its main command, magick, resizes, crops, rotates, blurs, draws on, annotates, composites and converts images from the command line, which makes it a common choice for scripted batch jobs on servers. The same engine is available as the MagickCore and MagickWand C libraries and Magick++ for C++, with bindings for Python, PHP, Ruby, Node.js, .NET, Rust, Go, Java and Perl. It handles gigapixel and terapixel images, runs its algorithms in parallel, and lets administrators set a security policy for untrusted input.
Ways to install
Package managers
Problems it solves
- convert a folder of PNG images to WebP or AVIF from a shell script
- resize thousands of product photos to the same dimensions in one batch job
- generate thumbnails for uploaded images on my server without opening an image editor
- turn a sequence of frames into an animated GIF from the command line
- stamp a watermark or caption text onto a whole batch of images automatically
- compare two screenshots and highlight the pixels that changed between them
- process a gigapixel scan that is too big to open in a normal image editor
- convert a pile of HEIC photos from my phone to JPEG in bulk
- find visually duplicate images even after they were resized or recompressed
- deskew, crop and trim scanned pages automatically before I archive them
- resize and convert images from my Python, PHP, Ruby or Node.js code with one engine
- lay out a contact sheet of image thumbnails with labels on one page
- convert images between colour spaces using ICC colour profiles in a script
- lock down which image formats my web app will decode from untrusted uploads
Features
- format conversion between 200+ formats (PNG, JPEG, WebP, AVIF, HEIC, TIFF)
- resize, rotate, deskew, crop, flip and trim
- composite, draw, annotate and add text
- animation from image sequences
- montage: thumbnail contact sheets
- compare: visual and mathematical image differences
- identify: describe an image's format and attributes
- mogrify: batch edit files in place
- color management with ICC profiles
- high dynamic range (HDRI) and multispectral imagery up to 32 bands
View 7 more
- perceptual hashes for finding visually identical images
- connected component labeling, Canny edge detection, Hough lines, morphology
- discrete Fourier transform and image calculator expressions
- gigapixel and terapixel image support, multithreaded algorithms, OpenCL acceleration
- distributed pixel cache across remote servers
- security policies to restrict formats and resources
- C (MagickWand, MagickCore) and C++ (Magick++) APIs with bindings for many languages
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what ImageMagick does.
- Gifsicle Create, manipulate, and optimize GIF images and animations
- sharp High performance Node.js image processing
- image Imaging library. Provides basic image processing and encoders/decoders for common image formats.
- OpenCV Open Source Computer Vision Library
- gifski Highest-quality GIF encoder, built on pngquant
- imgproxy Fast and secure self-hosted server for resizing and converting images on the fly
