1Introduction to ImageMagick 2 3 ImageMagick® is a software suite to create, edit, compose, or convert 4 bitmap images. It can read and write images in a variety of formats (over 5 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, 6 PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, 7 shear and transform images, adjust image colors, apply various special 8 effects, or draw text, lines, polygons, ellipses and Bézier curves. 9 10 The functionality of ImageMagick is typically utilized from the command 11 line or you can use the features from programs written in your favorite 12 language. Choose from these interfaces: G2F (Ada), MagickCore (C), 13 MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), 14 JMagick (Java), L-Magick (Lisp), Lua, NMagick (Neko/haXe), Magick.NET 15 (.NET), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP 16 (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick 17 (Tcl/TK). With a language interface, use ImageMagick to modify or create 18 images dynamically and automagically. 19 20 ImageMagick utilizes multiple computational threads to increase performance 21 and can read, process, or write mega-, giga-, or tera-pixel image sizes. 22 23 ImageMagick is free software delivered as a ready-to-run binary distribution 24 or as source code that you may use, copy, modify, and distribute in both open 25 and proprietary applications. It is distributed under a derived Apache 2.0 26 license. 27 28 The ImageMagick development process ensures a stable API and ABI. Before 29 each ImageMagick release, we perform a comprehensive security assessment 30 that includes memory error and thread data race detection to prevent 31 security vulnerabilities. 32 33 The current release is the ImageMagick 7.0.9-* series. It runs on Linux, 34 Windows, Mac Os X, iOS, Android OS, and others. 35 36 The authoritative ImageMagick web site is https://imagemagick.org. The 37 authoritative source code repository is https://github.com/ImageMagick. We 38 maintain a source code mirror at https://gitlab.com/ImageMagick. 39 40 We continue to maintain the legacy release of ImageMagick, version 6, 41 at https://legacy.imagemagick.org. 42 43 44Features and Capabilities 45 46 Here are just a few examples of what ImageMagick can do: 47 48 * Format conversion: convert an image from one format to another (e.g. 49 PNG to JPEG). 50 * Transform: resize, rotate, deskew, crop, flip or trim an image. 51 * Transparency: render portions of an image invisible. 52 * Draw: add shapes or text to an image. 53 * Decorate: add a border or frame to an image. 54 * Special effects: blur, sharpen, threshold, or tint an image. 55 * Animation: create a GIF animation sequence from a group of images. 56 * Text & comments: insert descriptive or artistic text in an image. 57 * Image gradients: create a gradual blend of one color whose shape is 58 horizontal, vertical, circular, or ellipical. 59 * Image identification: describe the format and attributes of an image. 60 * Composite: overlap one image over another. 61 * Montage: juxtapose image thumbnails on an image canvas. 62 * Generalized pixel distortion: correct for, or induce image distortions 63 including perspective. 64 * Computer vision: Canny edge detection. 65 * Morphology of shapes: extract features, describe shapes and recognize 66 patterns in images. 67 * Motion picture support: read and write the common image formats used in 68 digital film work. 69 * Image calculator: apply a mathematical expression to an image or image 70 channels. 71 * Connected component labeling: uniquely label connected regions in an 72 image. 73 * Discrete Fourier transform: implements the forward and inverse DFT. 74 * Perceptual hash: maps visually identical images to the same or similar 75 hash-- useful in image retrieval, authentication, indexing, or copy 76 detection as well as digital watermarking. 77 * Complex text layout: bidirectional text support and shaping. 78 * Color management: accurate color management with color profiles or in 79 lieu of-- built-in gamma compression or expansion as demanded by the 80 colorspace. 81 * High dynamic-range images: accurately represent the wide range of 82 intensity levels found in real scenes ranging from the brightest direct 83 sunlight to the deepest darkest shadows. 84 * Encipher or decipher an image: convert ordinary images into 85 unintelligible gibberish and back again. 86 * Virtual pixel support: convenient access to pixels outside the image 87 region. 88 * Large image support: read, process, or write mega-, giga-, or 89 tera-pixel image sizes. 90 * Threads of execution support: ImageMagick is thread safe and most 91 internal algorithms are OpenMP-enabled to take advantage of speed-ups 92 offered by multicore processor chips. 93 * Distributed pixel cache: offload intermediate pixel storage to one or 94 more remote servers. 95 * Heterogeneous distributed processing: certain algorithms are 96 OpenCL-enabled to take advantage of speed-ups offered by executing in 97 concert across heterogeneous platforms consisting of CPUs, GPUs, and 98 other processors. 99 * ImageMagick on the iPhone: convert, edit, or compose images on your 100 iPhone or iPad. 101 102 Examples of ImageMagick Usage * https://imagemagick.org/Usage/ 103 shows how to use ImageMagick from the command-line to accomplish any 104 of these tasks and much more. Also, see Fred's ImageMagick Scripts @ 105 http://www.fmwconcepts.com/imagemagick/: a plethora of command-line scripts 106 that perform geometric transforms, blurs, sharpens, edging, noise removal, 107 and color manipulations. With Magick.NET, use ImageMagick without having 108 to install ImageMagick on your server or desktop. 109 110 111News 112 113 Now that ImageMagick version 7 is released, we continue 114 to maintain the legacy release of ImageMagick, version 6, at 115 https://legacy.imagemagick.org. Learn how ImageMagick version 7 differs 116 from previous versions with our porting guide. 117 118 ImageMagick best practices strongly encourages you to configure a security 119 policy that suits your local environment. 120 121 As an analog to linear (RGB) and non-linear (sRGB) color colorspaces, as 122 of ImageMagick 7.0.7-17, we introduce the LinearGray colorspace. Gray is 123 non-linear grayscale and LinearGray is linear (e.g. -colorspace linear-gray). 124 125 Want more performance from ImageMagick? Try these options: 126 127 Add more memory to your system, see the pixel cache; Add more cores to 128 your system, see threads of execution support; push large images to a 129 solid-state drive, see large image support. 130 131 If these options are prohibitive, you can reduce the quality of the image 132 results. The default build is Q16 HDRI. If you disable HDRI, you use 133 half the memory and instead of predominately floating point operations, 134 you use the typically more efficient integer operations. The tradeoff 135 is reduced precision and you cannot process out of range pixel values 136 (e.g. negative). If you build the Q8 non-HDRI version of ImageMagick, 137 you again reduce the memory requirements in half-- and once again there 138 is a tradeoff, even less precision and no out of range pixel values. For 139 a Q8 non-HDRI build of ImageMagick, use these configure script options: 140 --with-quantum-depth=8 --disable-hdri. 141