This article has multiple issues. Please help to improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|Original author(s)||John Cristy|
|Developer(s)||ImageMagick Studio LLC|
|Initial release||August 1, 1990|
7.1.0-8 / September 19, 2021
|Author||ImageMagick Studio LLC|
|Debian FSG compatible||Yes|
|Linking from code with a different licence||Yes|
ImageMagick is a free and open-source cross-platform software suite for displaying, creating, converting, modifying, and editing raster images. Created in 1987 by John Cristy, it can read and write over 200 image file formats. It and its components are widely used in open-source applications.
ImageMagick was created in 1987 by John Cristy when working at DuPont, to convert 24-bit images (16 million colors) to 8-bit images (256 colors), so they could be displayed on most screens at the time. It was freely released in 1990 when DuPont agreed to transfer copyright to ImageMagick Studio LLC, still currently the project maintainer organization.
In May 2016, it was reported that ImageMagick had a vulnerability through which an attacker can execute arbitrary code on servers that use the application to edit user-uploaded images. Security experts including CloudFlare researchers observed actual use of the vulnerability in active hacking attempts. The security flaw was due to ImageMagick calling backend tools without first properly checking to ensure path and file names are free of improper shell commands. The vulnerability did not affect ImageMagick distributions that included a properly configured security policy.
Features and capabilities
The software mainly consists of a number of command-line interface utilities for manipulating images. ImageMagick does not have a robust graphical user interface to edit images as do Adobe Photoshop and GIMP, but does include – for Unix-like operating systems – a basic native X Window GUI (called IMDisplay) for rendering and manipulating images and API libraries for many programming languages. The program uses magic numbers to identify image file formats.
A number of programs, such as Drupal, MediaWiki, phpBB, and vBulletin, can use ImageMagick to create image thumbnails if installed. ImageMagick is also used by other programs, such as LyX, for converting images.
ImageMagick has a fully integrated Perl binding called PerlMagick, as well as many others: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/Haxe), MagickNet (.NET), PascalMagick (Pascal), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK).
File format conversion
One of the basic and thoroughly-implemented features of ImageMagick is its ability to efficiently and accurately convert images between different file formats (it uses the command
convert to achieve this).
The number of colors in an image can be reduced to an arbitrary number and this is done by weighing the most prominent color values present among the pixels of the image.
A related capability is the posterization artistic effect, which also reduces the number of colors represented in an image. The difference between this and standard color quantization is that while in standard quantization the final palette is selected based upon a weighting of the prominence of existing colors in the image, posterization creates a palette of colors smoothly distributed across the spectrum represented in the image. Whereas with standard color quantization all of the final color values are ones that were in the original image, the color values in a posterized image may not have been present in the original image but are in between the original color values.
ImageMagick includes a variety of filters and features intended to create artistic effects:
- Charcoal sketch transform
The Q8 version supports up-to 8 bits-per-pixel component (8-bit grayscale, 24- or 32-bit RGB color). The Q16 version supports up-to 16 bits-per-pixel component (16-bit grayscale, up-to 48- or 64-bit RGB color).
Below are some other features of ImageMagick:
- Format conversion: convert an image from one format to another (e.g. PNG to JPEG).
- Transform: resize, rotate, crop, flip or trim an image. (Applies these without generation loss on JPEG files, where possible.)
- Transparency: render portions of an image invisible.
- Draw: add shapes or text to an image.
- Decorate: add a border or frame to an image.
- Special effects: blur, sharpen, threshold, or tint an image.
- Animation: assemble a GIF animation file from a sequence of images.
- Text and comments: insert descriptive or artistic text in an image.
- Image identification: describe the format and attributes of an image.
- Composite: overlap one image over another.
- Montage: juxtapose image thumbnails on an image canvas.
- Generalized pixel distortion: correct for, or induce image distortions including perspective.
- Morphology of shapes: extract features, describe shapes and recognize patterns in images.
- Motion picture support: read and write the common image formats used in digital film work.
- Image calculator: apply a mathematical expression to an image or image channels.
- Discrete Fourier transform: implements forward and inverse DFT.
- Color management: accurate color management with color profiles or in lieu of – built-in gamma compression or expansion as demanded by the colorspace.
- High-dynamic-range images: accurately represent the wide range of intensity levels found in real scenes ranging from the brightest direct sunlight to the deepest darkest shadows.
- Encipher or decipher an image: convert ordinary images into unintelligible gibberish and back again.
- Virtual pixel support: convenient access to pixels outside the image region.
- Large image support: read, process, or write mega-, giga-, or tera-pixel image sizes.
- Threads of execution support: ImageMagick is thread safe and most internal algorithms execute in parallel to take advantage of speed-ups offered by multi-core processor chips.
- Heterogeneous distributed processing: certain algorithms are OpenCL-enabled to take advantage of speed-ups offered by executing in concert across heterogeneous platforms consisting of CPUs, GPUs, and other processors.
- Distributed pixel cache: offload intermediate pixel storage to one or more remote servers.
- ImageMagick on the iPhone: convert, edit, or compose images on an iOS computing device such as the iPhone or iPad.
ImageMagick is cross-platform, and runs on Microsoft Windows and Unix-like systems including Linux, macOS, iOS, Android, Solaris, Haiku and FreeBSD. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS. It has been run under IRIX.
GraphicsMagick is a fork of ImageMagick 5.5.2 made in 2002, emphasizing the cross-release stability of the programming API and command-line options. GraphicsMagick emerged as a result of irreconcilable differences in the developers' group.
- "History". ImageMagick. Archived from the original on March 14, 2018. Retrieved March 18, 2018.
Dr. Pensak had to convince upper management at DuPont. ... Either way, ImageMagick would not be available today without DuPont transferring the copyright to ImageMagick Studio LLC. ImageMagick was posted to Usenet's comp.archives group on August 1, 1990.
- "ImageMagick Changelog". Archived from the original on June 6, 2016. Retrieved July 29, 2021.
- "ImageMagick License". spdx.org.
- "ImageMagick: License". ImageMagick. Archived from the original on October 26, 2016. Retrieved October 26, 2016.
- "ImageMagick: History". www.imagemagick.org. ImageMagick Studio. Archived from the original on October 29, 2016. Retrieved October 18, 2016.
- Hajdarbegovic, Nermin (February 12, 2019). "ImageMagick: Manipulating Graphics From The Command-Line?". whoishostingthis.com. Retrieved August 18, 2020.
- "ImageMagick". computerhope.com. February 27, 2019. Retrieved August 18, 2020.
- "Exploits gone wild: Hackers target critical image-processing bug". Ars Technica. 2016. Archived from the original on September 25, 2016. Retrieved September 26, 2016.
- "Inside ImageTragick: The Real Payloads Being Used to Hack Websites". CloudFlare. 2016. Archived from the original on October 1, 2016. Retrieved September 26, 2016.
- Williams, Chris (May 4, 2016). "Server-jacking exploits for ImageMagick are so trivial, you'll scream". The Register. Archived from the original on December 23, 2017. Retrieved December 22, 2017.
- LLC, ImageMagick Studio. "PerlMagick, Perl API @ ImageMagick". imagemagick.org. Archived from the original on May 10, 2017. Retrieved May 22, 2017.
- "ImageMagick: Architecture". Archived from the original on June 1, 2016. Retrieved January 6, 2010.
- "Magick++ API: Install Magick++". imagemagick.org. Archived from the original on May 8, 2017. Retrieved May 22, 2017.
- "Introducing GraphicsMagick Project". ImageMagick-developer Mailing List. March 15, 2003.
- Montabone, Sebastian (2010). Beginning Digital Image Processing: Using Free Tools for Photographers. Apress. ISBN 978-1-4302-2841-7.
|Wikimedia Commons has media related to ImageMagick.|
- Official website
- ImageMagick Security Policy – ImageMagick Security Policy – best practices strongly encourages you to configure a security policy that suits your local environment
- IM Examples – Examples of CLI Usage – provides many small examples demonstrating its vast range of capabilities
- Fred's ImageMagick Scripts – provides a plethora of shell scripts using ImageMagick to do more complex tasks
- How to automate PDF structural testing using ImageMagick – Demonstrates convert, compare and collate features of ImageMagick.
- Critical ImageMagick vulnerability ImageMagick suffers from a vulnerability that allows malformed images to force a Web server to execute code