blob: 56ed2287387cc3fea785a0a3aeeece2b2eb6adfa [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001Introduction to ImageMagick
2
cristye68f5992015-03-03 17:44:51 +00003 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
Cristye27c18a2018-01-10 19:02:11 -05005 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript,
cristy4fa14332015-06-06 18:23:08 +00006 PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort,
cristye68f5992015-03-03 17:44:51 +00007 shear and transform images, adjust image colors, apply various special
rrishu1686dd92020-10-01 16:18:49 +05308 effects, or draw text, lines, polygons, ellipses and Bezier curves.
cristya1410932010-11-06 18:16:16 +00009
cristyc1c61662009-09-30 14:04:37 +000010 The functionality of ImageMagick is typically utilized from the command
11 line or you can use the features from programs written in your favorite
cristy4fa14332015-06-06 18:23:08 +000012 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
cristyc1c61662009-09-30 14:04:37 +000015 (.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.
cristyed8d54c2015-05-25 13:48:40 +000019
rrishu1686dd92020-10-01 16:18:49 +053020 ImageMagick utilize multiple computational threads to increase performance
cristyed8d54c2015-05-25 13:48:40 +000021 and can read, process, or write mega-, giga-, or tera-pixel image sizes.
cristya1410932010-11-06 18:16:16 +000022
cristyc1c61662009-09-30 14:04:37 +000023 ImageMagick is free software delivered as a ready-to-run binary distribution
cristy4fa14332015-06-06 18:23:08 +000024 or as source code that you may use, copy, modify, and distribute in both open
Cristyd5382652018-09-15 15:08:33 -040025 and proprietary applications. It is distributed under a derived Apache 2.0
26 license.
cristya1410932010-11-06 18:16:16 +000027
cristy1bd5c4d2010-06-11 13:55:20 +000028 The ImageMagick development process ensures a stable API and ABI. Before
29 each ImageMagick release, we perform a comprehensive security assessment
cristy4fa14332015-06-06 18:23:08 +000030 that includes memory error and thread data race detection to prevent
31 security vulnerabilities.
cristyc1c61662009-09-30 14:04:37 +000032
Elliott Hughes5d41fba2021-04-12 16:36:42 -070033 The current release is the ImageMagick 7.0.11-* series. It runs on Linux,
Cristyd9f3a562018-08-04 12:45:36 -040034 Windows, Mac Os X, iOS, Android OS, and others.
cristye68f5992015-03-03 17:44:51 +000035
Cristya6f9c7e2018-10-13 10:21:15 -040036 The authoritative ImageMagick web site is https://imagemagick.org. The
Cristy3ab05fc2020-12-06 13:37:04 +000037 authoritative source code repository is
38 https://github.com/ImageMagick/ImageMagick.
cristye68f5992015-03-03 17:44:51 +000039
Cristyd9f3a562018-08-04 12:45:36 -040040 We continue to maintain the legacy release of ImageMagick, version 6,
41 at https://legacy.imagemagick.org.
42
cristye68f5992015-03-03 17:44:51 +000043
cristy3ed852e2009-09-05 21:47:34 +000044Features and Capabilities
cristya1410932010-11-06 18:16:16 +000045
cristyc1c61662009-09-30 14:04:37 +000046 Here are just a few examples of what ImageMagick can do:
cristya1410932010-11-06 18:16:16 +000047
48 * Format conversion: convert an image from one format to another (e.g.
49 PNG to JPEG).
cristya06a5a82015-06-08 22:43:28 +000050 * Transform: resize, rotate, deskew, crop, flip or trim an image.
cristya1410932010-11-06 18:16:16 +000051 * 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.
Cristy7146ae82016-02-10 14:30:46 -050057 * Image gradients: create a gradual blend of one color whose shape is
Cristya5780202015-10-20 19:27:08 -040058 horizontal, vertical, circular, or ellipical.
cristya1410932010-11-06 18:16:16 +000059 * 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.
cristy698968d2014-04-11 16:39:25 +000064 * Computer vision: Canny edge detection.
cristya1410932010-11-06 18:16:16 +000065 * 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.
cristy4bc91a12014-12-27 01:45:49 +000071 * Connected component labeling: uniquely label connected regions in an
72 image.
cristya1410932010-11-06 18:16:16 +000073 * Discrete Fourier transform: implements the forward and inverse DFT.
cristydf6cf212014-01-29 18:06:41 +000074 * Perceptual hash: maps visually identical images to the same or similar
cristyeab3d612014-01-29 18:09:51 +000075 hash-- useful in image retrieval, authentication, indexing, or copy
76 detection as well as digital watermarking.
Cristy7146ae82016-02-10 14:30:46 -050077 * Complex text layout: bidirectional text support and shaping.
cristy48002432014-01-29 15:31:47 +000078 * 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.
Cristy3ab05fc2020-12-06 13:37:04 +000081 * Bilateral blur: non-linear, edge-preserving, and noise-reducing
82 smoothing filter.
cristya1410932010-11-06 18:16:16 +000083 * High dynamic-range images: accurately represent the wide range of
84 intensity levels found in real scenes ranging from the brightest direct
85 sunlight to the deepest darkest shadows.
86 * Encipher or decipher an image: convert ordinary images into
87 unintelligible gibberish and back again.
88 * Virtual pixel support: convenient access to pixels outside the image
89 region.
90 * Large image support: read, process, or write mega-, giga-, or
91 tera-pixel image sizes.
92 * Threads of execution support: ImageMagick is thread safe and most
93 internal algorithms are OpenMP-enabled to take advantage of speed-ups
94 offered by multicore processor chips.
cristy37aa5592013-01-27 22:59:34 +000095 * Distributed pixel cache: offload intermediate pixel storage to one or
96 more remote servers.
cristya1410932010-11-06 18:16:16 +000097 * Heterogeneous distributed processing: certain algorithms are
98 OpenCL-enabled to take advantage of speed-ups offered by executing in
99 concert across heterogeneous platforms consisting of CPUs, GPUs, and
100 other processors.
101 * ImageMagick on the iPhone: convert, edit, or compose images on your
cristy4fa14332015-06-06 18:23:08 +0000102 iPhone or iPad.
cristya1410932010-11-06 18:16:16 +0000103
Cristyfd8bf2a2020-10-23 13:20:23 +0000104 Examples of ImageMagick Usage * https://legacy.imagemagick.org/Usage/
Cristyd9f3a562018-08-04 12:45:36 -0400105 shows how to use ImageMagick from the command-line to accomplish any
106 of these tasks and much more. Also, see Fred's ImageMagick Scripts @
107 http://www.fmwconcepts.com/imagemagick/: a plethora of command-line scripts
108 that perform geometric transforms, blurs, sharpens, edging, noise removal,
cristy4fa14332015-06-06 18:23:08 +0000109 and color manipulations. With Magick.NET, use ImageMagick without having
110 to install ImageMagick on your server or desktop.
cristy4bc91a12014-12-27 01:45:49 +0000111
Cristyd9f3a562018-08-04 12:45:36 -0400112
113News
114
Cristy3ab05fc2020-12-06 13:37:04 +0000115 ImageMagick best practices strongly encourages you to configure a security
116 policy that suits your local environment.
117
Cristyd9f3a562018-08-04 12:45:36 -0400118 Now that ImageMagick version 7 is released, we continue
119 to maintain the legacy release of ImageMagick, version 6, at
120 https://legacy.imagemagick.org. Learn how ImageMagick version 7 differs
121 from previous versions with our porting guide.
122
Cristyd9f3a562018-08-04 12:45:36 -0400123 Want more performance from ImageMagick? Try these options:
124
Cristy3ab05fc2020-12-06 13:37:04 +0000125 * add more memory to your system, see the pixel cache;
126 * add more cores to your system, see threads of execution support;
127 * reduce lock contention with the tcmalloc memory allocation library;
128 * push large images to a solid-state drive, see large image support.
Cristyd9f3a562018-08-04 12:45:36 -0400129
130 If these options are prohibitive, you can reduce the quality of the image
131 results. The default build is Q16 HDRI. If you disable HDRI, you use
132 half the memory and instead of predominately floating point operations,
133 you use the typically more efficient integer operations. The tradeoff
134 is reduced precision and you cannot process out of range pixel values
135 (e.g. negative). If you build the Q8 non-HDRI version of ImageMagick,
136 you again reduce the memory requirements in half-- and once again there
137 is a tradeoff, even less precision and no out of range pixel values. For
138 a Q8 non-HDRI build of ImageMagick, use these configure script options:
139 --with-quantum-depth=8 --disable-hdri.