Image Magick
   HOME

TheInfoList



OR:

ImageMagick, invoked from the command line as magick, is a
free and open-source Free and open-source software (FOSS) is a term used to refer to groups of software consisting of both free software and open-source software where anyone is freely licensed to use, copy, study, and change the software in any way, and the source ...
cross-platform software suite for displaying, creating, converting, modifying, and
editing Editing is the process of selecting and preparing written, photographic, visual, audible, or cinematic material used by a person or an entity to convey a message or information. The editing process can involve correction, condensation, orga ...
raster images. Created in 1987 by John Cristy, it can read and write over 200 image file formats. It is widely used in open-source applications.


History

ImageMagick was created in 1987 by John Cristy when working at
DuPont DuPont de Nemours, Inc., commonly shortened to DuPont, is an American multinational chemical company first formed in 1802 by French-American chemist and industrialist Éleuthère Irénée du Pont de Nemours. The company played a major role in ...
, 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 Security policy is a definition of what it means to ''be secure'' for a system, organization or other entity. For an organization, it addresses the constraints on behavior of its members as well as constraints imposed on adversaries by mechanisms ...
.


Features and capabilities

The software mainly consists of a number of
command-line interface A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
utilities for manipulating images. ImageMagick does not have a robust graphical user interface to edit images as do
Adobe Photoshop Adobe Photoshop is a raster graphics editor developed and published by Adobe Inc. for Microsoft Windows, Windows and macOS. It was originally created in 1988 by Thomas Knoll, Thomas and John Knoll. Since then, the software has become the indu ...
and
GIMP GIMP ( ; GNU Image Manipulation Program) is a free and open-source raster graphics editor used for image manipulation (retouching) and image editing, free-form drawing, transcoding between different image file formats, and more specialized task ...
, 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 format A file format is a standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary or free. Some file formats ...
s. A number of programs, such as
Drupal Drupal () is a free and open-source web content management system (CMS) written in PHP and distributed under the GNU General Public License. Drupal provides an open-source back-end framework for at least 14% of the top 10,000 websites worldwide ...
, 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).


Color quantization

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.


Dithering

A fine control is provided for the dithering that occurs during color and shading alterations, including the ability to generate
halftone Halftone is the reprographic Reprography (a portmanteau of ''reproduction'' and ''photography'') is the reproduction of graphics through mechanical or electrical means, such as photography or xerography. Reprography is commonly used in catal ...
dithering.


Liquid rescaling

In 2008, support for liquid rescaling was added. This feature allows, for example, rescaling 4:3 images into 16:9 images without distorting the image.


Artistic effects

ImageMagick includes a variety of filters and features intended to create artistic effects: * Charcoal sketch transform * Posterization


OpenCL

ImageMagick can use OpenCL to use an accelerated graphics card ( GPU) for processing.


Deep color

The Q8 version supports up-to 8 bits-per-pixel component (8-bit grayscale, 24- or 32-bit
RGB color The RGB color model is an additive color model in which the red, green and blue primary colors of light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additiv ...
). The Q16 version supports up-to 16 bits-per-pixel component (16-bit grayscale, up-to 48- or 64-bit RGB color).


Other

Below are some other features of ImageMagick: * Format conversion: convert an image from one format to another (e.g. PNG to
JPEG JPEG ( ) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and imag ...
). * 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 The Graphics Interchange Format (GIF; or , see pronunciation) is a bitmap image format that was developed by a team at the online services provider CompuServe led by American computer scientist Steve Wilhite and released on 15 June 1987. ...
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 Thread safety is a computer programming concept applicable to multi-threaded code. Thread-safe code only manipulates shared data structures in a manner that ensures that all threads behave properly and fulfill their design specifications without uni ...
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.


Distribution

ImageMagick is cross-platform, and runs on
Microsoft Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
and Unix-like systems including Linux, macOS, iOS,
Android Android may refer to: Science and technology * Android (robot), a humanoid robot or synthetic organism designed to imitate a human * Android (operating system), Google's mobile operating system ** Bugdroid, a Google mascot sometimes referred to ...
, Solaris, Haiku and
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS. It has been run under
IRIX IRIX ( ) is a discontinued operating system developed by Silicon Graphics (SGI) to run on the company's proprietary MIPS workstations and servers. It is based on UNIX System V with BSD extensions. In IRIX, SGI originated the XFS file system and ...
.


Related software

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.


See also

* DevIL *
GD Graphics Library The GD Graphics Library is a graphics software library by Thomas Boutell and others for dynamically manipulating images. Its native programming language is ANSI C, but it has interfaces for many other programming languages. It can create GIFs, JP ...
* Netpbm


References


Further reading

*


External links

*
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

– 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 {{DEFAULTSORT:ImageMagick 1990 software Command-line software Free graphics software Free raster graphics editors Free software programmed in C Graphics libraries Graphics software IRIX software Java platform software Screenshot software