• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2
3
4
5<!DOCTYPE html>
6<html lang="en">
7<head>
8  <meta charset="utf-8"  />
9  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no"  />
10  <title>Convert, Edit, Or Compose Bitmap Images @ ImageMagick</title>
11  <meta name="application-name" content="ImageMagick" />
12  <meta name="description" content="Use ImageMagick® to create, edit, compose, or convert bitmap images. You can resize your image, crop it, change its shades and colors, add captions, among other operations." />
13  <meta name="application-url" content="https://imagemagick.org" />
14  <meta name="generator" content="PHP" />
15  <meta name="keywords" content="convert, edit, or, compose, bitmap, images, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
16  <meta name="rating" content="GENERAL" />
17  <meta name="robots" content="INDEX, FOLLOW" />
18  <meta name="generator" content="ImageMagick Studio LLC" />
19  <meta name="author" content="ImageMagick Studio LLC" />
20  <meta name="revisit-after" content="2 DAYS" />
21  <meta name="resource-type" content="document" />
22  <meta name="copyright" content="Copyright (c) 1999-2019 ImageMagick Studio LLC" />
23  <meta name="distribution" content="Global" />
24  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
25  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
26  <link href="quantize.html" rel="canonical" />
27  <link href="../../images/wand.png" rel="icon" />
28  <link href="../../images/wand.ico" rel="shortcut icon" />
29  <link href="../assets/magick.css" rel="stylesheet" />
30</head>
31<body>
32  <header>
33  <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
34    <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../images/wand.ico"/></a>
35    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">
36      <span class="navbar-toggler-icon"></span>
37    </button>
38
39    <div class="navbar-collapse collapse" id="navbarsMagick" style="">
40    <ul class="navbar-nav mr-auto">
41      <li class="nav-item active">
42        <a class="nav-link" href="quantize.html">Home <span class="sr-only">(current)</span></a>
43      </li>
44      <li class="nav-item ">
45        <a class="nav-link" href="../../www/download.html">Download</a>
46      </li>
47      <li class="nav-item ">
48        <a class="nav-link" href="../../www/command-line-tools.html">Tools</a>
49      </li>
50      <li class="nav-item ">
51        <a class="nav-link" href="../../www/command-line-processing.html">Command-line</a>
52      </li>
53      <li class="nav-item ">
54        <a class="nav-link" href="../../www/resources.html">Resources</a>
55      </li>
56      <li class="nav-item ">
57        <a class="nav-link" href="../../www/develop.html">Develop</a>
58      </li>
59      <li class="nav-item">
60        <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a>
61      </li>
62    </ul>
63    <form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php">
64      <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
65      <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
66    </form>
67    </div>
68  </nav>
69  <div class="container">
70   <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
71         style="display:block"
72         data-ad-client="ca-pub-3129977114552745"
73         data-ad-slot="6345125851"
74         data-ad-format="auto"></ins>
75    <script>
76      (adsbygoogle = window.adsbygoogle || []).push({});
77    </script>
78
79  </div>
80  </header>
81  <main class="container">
82    <div class="magick-template">
83<div class="magick-header">
84<p class="text-center"><a href="quantize.html#features">Features and Capabilities</a> • <a href="quantize.html#news">News</a> • <a href="quantize.html#community">Community</a></p>
85
86<p class="lead magick-description"><a href="../../images/wizard.png" title="And Now a Touch of Magick"><img class="img-fluid magick-icon" id="logo" alt="And Now a Touch of Magick" width="265" height="352" src="../../images/wizard.jpg" /></a>
87Use ImageMagick<sup><a href="http://tarr.uspto.gov/servlet/tarr?regser=serial&amp;entry=78333969">&#174;</a></sup> to create, edit, compose, or convert bitmap images.  It can read and write images in a variety of <a href="../../www/formats.html">formats</a> (over 200) including PNG, JPEG, GIF, HEIC, TIFF, <a href="../../www/motion-picture.html">DPX</a>, <a href="../../www/high-dynamic-range.html">EXR</a>, WebP, Postscript, PDF, and SVG.  Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.</p>
88
89<p>The functionality of ImageMagick is typically utilized from the <a href="../../www/command-line-processing.html">command-line</a> or you can use the features from programs written in your favorite language. Choose from these interfaces: <a href="../../www/develop.html#ada">G2F</a> (Ada), <a href="../../www/develop.html#c">MagickCore</a> (C), <a href="../../www/develop.html#c">MagickWand</a> (C), <a href="../../www/develop.html#ch">ChMagick</a> (Ch), <a href="../../www/develop.html#com_">ImageMagickObject</a> (COM+), <a href="../../www/develop.html#c__">Magick++</a> (C++), <a href="../../www/develop.html#java">JMagick</a> (Java), <a href="../../www/develop.html#julia">JuliaIO</a> (Julia), <a href="../../www/develop.html#lisp">L-Magick</a> (Lisp), <a href="../../www/develop.html#lua">Lua</a> (LuaJIT), <a href="../../www/develop.html#neko">NMagick</a> (Neko/haXe), <a href="../../www/develop.html#dot-net">Magick.NET</a> (.NET), <a href="../../www/develop.html#pascal">PascalMagick</a> (Pascal),  <a href="../../www/develop.html#perl">PerlMagick</a> (Perl), <a href="../../www/develop.html#php">MagickWand for PHP</a> (PHP),  <a href="../../www/develop.html#php">IMagick</a> (PHP), <a href="../../www/develop.html#python">PythonMagick</a> (Python), <a href="../../www/develop.html#r">magick</a> (R), <a href="../../www/develop.html#ruby">RMagick</a> (Ruby), or <a href="../../www/develop.html#tcl">TclMagick</a> (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and <var>automagically</var>.</p>
90<p>ImageMagick utilizes multiple computational threads to increase performance and can read, process, or write mega-, giga-, or tera-pixel image sizes.</p>
91<p>ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. It is distributed under a derived Apache 2.0 <a href="../www/license.html">license</a>.</p>
92
93<p>The ImageMagick development process ensures a stable API and <a href="https://abi-laboratory.pro/tracker/timeline/imagemagick/">ABI</a>. Before each ImageMagick release, we perform a comprehensive security assessment that includes <a href="https://github.com/google/sanitizers/wiki/AddressSanitizer">memory error</a>, <a href="https://github.com/google/sanitizers/wiki/ThreadSanitizer">thread data race</a> detection, and continuous <a href="https://github.com/google/oss-fuzz">fuzzing</a> to help prevent security vulnerabilities.</p>
94
95<p>The current release is ImageMagick <a href="../../www/download.html">7.0.8-23</a>.  It runs on <a href="../../www/download.html#unix">Linux</a>, <a href="../../www/download.html#windows">Windows</a>, <a href="../../www/download.html#macosx">Mac Os X</a>, <a href="../../www/download.html#iOS">iOS</a>, Android OS, and others.</p>
96
97<p>The authoritative ImageMagick web site is <a href="../../">https://imagemagick.org</a>. The authoritative source code repository is <a href="https://github.com/ImageMagick">https://github.com/ImageMagick</a>.  We maintain a source code mirror at <a href="https://gitlab.com/ImageMagick">https://gitlab.com/ImageMagick</a>.</p>
98
99<p>We continue to maintain the legacy release of ImageMagick, version 6, at <a href="https://legacy.imagemagick.org/">https://legacy.imagemagick.org</a>.</p>
100
101<h1><a class="anchor" id="features"></a>Features and Capabilities</h1>
102<p>Here are just a few <a href="../www/examples.html">examples</a> of what ImageMagick can do for you:</p>
103<div class="table-responsive">
104<table class="table table-sm table-striped">
105  <tr>
106    <td><a href="../../Usage/anim_basics/">Animation</a></td>
107    <td>create a GIF animation sequence from a group of images.</td>
108  </tr>
109  <tr>
110    <td><a href="../www/color-management.html">Color management</a></td>
111    <td>accurate color management with color profiles or in lieu of-- built-in gamma compression or expansion as demanded by the colorspace.</td>
112  </tr>
113  <tr>
114    <td><a href="../../www/command-line-processing.html">Command-line processing</a></td>
115    <td>utilize ImageMagick from the command-line.</td>
116  </tr>
117  <tr>
118    <td><a href="https://en.wikipedia.org/wiki/Complex_text_layout">Complex text layout</a></td>
119    <td>bidirectional text support and shaping.</td>
120  </tr>
121  <tr>
122    <td><a href="../www/composite.html">Composite</a></td>
123    <td>overlap one image over another.</td>
124  </tr>
125  <tr>
126    <td><a href="../www/connected-components.html">Connected component labeling</a></td>
127    <td>uniquely label connected regions in an image.</td>
128  </tr>
129  <tr>
130    <td><a href="../../Usage/crop/">Decorate</a></td>
131    <td>add a border or frame to an image.</td>
132  </tr>
133  <tr>
134    <td><a href="../../Usage/transform/#vision">Delineate image features</a></td>
135    <td><a href="../https://imagemagick.org/discourse-server//viewtopic.html?f=4&amp;t=25405">Canny edge detection</a>, <a href="../https://imagemagick.org/discourse-server//viewtopic.html?f=4&amp;t=25476">Hough lines</a>.</td>
136  </tr>
137  <tr>
138    <td><a href="../../Usage/fourier/">Discrete Fourier transform</a></td>
139    <td>implements the forward and inverse <a href="https://en.wikipedia.org/wiki/Discrete_Fourier_transform">DFT</a>.</td>
140  </tr>
141  <tr>
142    <td><a href="../www/distribute-pixel-cache.html">Distributed pixel cache</a></td>
143    <td>offload intermediate pixel storage to one or more remote servers.</td>
144  </tr>
145  <tr>
146    <td><a href="../../Usage/draw/">Draw</a></td>
147    <td>add shapes or text to an image.</td>
148  </tr>
149  <tr>
150    <td><a href="../www/cipher.html">Encipher or decipher an image</a></td>
151    <td>convert ordinary images into unintelligible gibberish and back again.</td>
152  </tr>
153  <tr>
154    <td><a href="../../www/convert.html">Format conversion</a></td>
155    <td>convert an image from one <a href="../../www/formats.html">format </a> to another (e.g. PNG to JPEG).</td>
156  </tr>
157  <tr>
158    <td><a href="../../Usage/distorts/">Generalized pixel distortion</a></td>
159    <td>correct for, or induce image distortions including perspective.</td>
160  </tr>
161  <tr>
162    <td><a href="../../www/architecture.html#distributed">Heterogeneous distributed processing</a></td>
163    <td>certain algorithms are <a href="../www/opencl.html">OpenCL</a>-enabled to take advantage of speed-ups offered by executing in concert across heterogeneous platforms consisting of CPUs, GPUs, and other processors.</td>
164  </tr>
165  <tr>
166    <td><a href="../../www/high-dynamic-range.html">High dynamic-range images</a></td>
167    <td>accurately represent the wide range of intensity levels found in real scenes ranging from the brightest direct sunlight to the deepest darkest shadows.</td>
168  </tr>
169  <tr>
170    <td><a href="../www/fx.html">Image calculator</a></td>
171    <td>apply a mathematical expression to an image or image channels.</td>
172  </tr>
173  <tr>
174    <td><a href="../../www/gradient.html">Image gradients</a></td>
175    <td>create a gradual blend of two colors whose shape is horizontal, vertical, circular, or elliptical.</td>
176  </tr>
177  <tr>
178    <td><a href="../www/identify.html">Image identification</a></td>
179    <td>describe the format and attributes of an image.</td>
180  </tr>
181  <tr>
182    <td><a href="../../www/download.html#iOS">ImageMagick on the iPhone</a></td>
183    <td>convert, edit, or compose images on your <a href="https://www.apple.com/ios/">iOS</a> device such as the iPhone or iPad.</td>
184  </tr>
185  <tr>
186    <td><a href="../../www/architecture.html#tera-pixel">Large image support</a></td>
187    <td>read, process, or write mega-, giga-, or tera-pixel image sizes.</td>
188  </tr>
189  <tr>
190    <td><a href="../../www/montage.html">Montage</a></td>
191    <td>juxtapose image thumbnails on an image canvas.</td>
192  </tr>
193  <tr>
194    <td><a href="../../Usage/morphology/">Morphology of shapes</a></td>
195    <td>extract features, describe shapes, and recognize patterns in images.</td>
196  </tr>
197  <tr>
198    <td><a href="../../www/motion-picture.html">Motion picture support</a></td>
199    <td>read and write the common image formats used in digital film work.</td>
200  </tr>
201  <tr>
202    <td><a href="../../Usage/transform/#vision">Noise and color reduction</a></td>
203    <td><a href="../https://imagemagick.org/discourse-server//viewtopic.html?f=4&amp;t=26480">Kuwahara Filter</a>, <a href="../https://imagemagick.org/discourse-server//viewtopic.html?f=4&amp;t=25504">mean-shift</a>.</td>
204  </tr>
205  <tr>
206    <td><a href="http://www.fmwconcepts.com/misc_tests/perceptual_hash_test_results_510/index.html">Perceptual hash</a></td>
207    <td>map visually identical images to the same or similar hash-- useful in image retrieval, authentication, indexing, or copy detection as well as digital watermarking.</td>
208  </tr>
209  <tr>
210    <td><a href="../../Usage/blur/">Special effects</a></td>
211    <td>blur, sharpen, threshold, or tint an image.</td>
212  </tr>
213  <tr>
214    <td><a href="../../Usage/text/">Text &amp; comments</a></td>
215    <td>insert descriptive or artistic text in an image.</td>
216  </tr>
217  <tr>
218    <td><a href="../../www/architecture.html#threads">Threads of execution support</a></td>
219    <td>ImageMagick is thread safe and most internal algorithms execute in <a href="../www/openmp.html">parallel</a> to take advantage of speed-ups offered by multicore processor chips.</td>
220  </tr>
221  <tr>
222    <td><a href="../../Usage/resize/">Transform</a></td>
223    <td>resize, rotate, deskew, crop, flip or trim an image.</td>
224  </tr>
225  <tr>
226    <td><a href="../../Usage/masking/">Transparency</a></td>
227    <td>render portions of an image invisible.</td>
228  </tr>
229  <tr>
230    <td><a href="../../www/architecture.html#virtual-pixels">Virtual pixel support</a></td>
231    <td>convenient access to pixels outside the image boundaries.</td>
232  </tr>
233</table>
234</div>
235
236<p><a href="../../Usage/">Examples of ImageMagick Usage</a> shows how to use ImageMagick from the <a href="../../www/command-line-processing.html">command-line</a> to accomplish any of these tasks and much more. Also, see <a href="http://www.fmwconcepts.com/imagemagick/">Fred's ImageMagick Scripts</a>:  a plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations. With <a href="https://github.com/dlemstra/Magick.NET">Magick.NET</a>, use ImageMagick without having to install ImageMagick on your server or desktop.</p>
237
238<h1><a class="anchor" id="news"></a>News</h1>
239
240<p>Now that ImageMagick version 7 is released, we continue to maintain the legacy release of ImageMagick, version 6, at <a href="https://legacy.imagemagick.org/">https://legacy.imagemagick.org</a>.  Learn how ImageMagick version 7 differs from previous versions with our <a href="../www/porting.html">porting guide</a>.</p>
241
242<p>ImageMagick best practices <strong>strongly</strong> encourages you to configure a <a href="../../www/security-policy.html">security policy</a> that suits your local environment.</p>
243
244<p>As an analog to linear (RGB) and non-linear (sRGB) color colorspaces, as of ImageMagick 7.0.7-17, we introduce the LinearGray colorspace.  Gray is non-linear grayscale and LinearGray is linear (e.g. -colorspace linear-gray).</p>
245
246<p>Want more performance from ImageMagick?  Try these options:</p>
247
248<ul>
249<li>Add more memory to your system, see <a href="../../www/architecture.html#cache">the pixel cache</a>;</li>
250<li>Add more cores to your system, see <a href="../../www/architecture.html#threads">threads of execution support</a>;</li>
251<li>push large images to a solid-state drive, see <a href="../../www/architecture.html#tera-pixel">large image support</a>.</li>
252</ul>
253<p>If these options are prohibitive, you can reduce the quality of the image results.  The default build is Q16 HDRI.  If you disable <a href="../../www/high-dynamic-range.html">HDRI</a>, you use half the memory and instead of predominately floating point operations, you use the typically more efficient integer operations.  The tradeoff is reduced precision and you cannot process out of range pixel values (e.g. negative).  If you build the Q8 non-HDRI  version of ImageMagick, you again reduce the memory requirements in half-- and once again there is a tradeoff, even less precision and no out of range pixel values.  For a Q8 non-HDRI build of ImageMagick, use these <code>configure</code> script options: <code>--with-quantum-depth=8 --disable-hdri</code>.</p>
254
255<h1><a class="anchor" id="community"></a>Community</h1>
256<p>To join the ImageMagick community, try the <a target="_blank" href="https://imagemagick.org/discourse-server/">discourse server</a>.  You can review questions or comments (with informed responses) posed by ImageMagick users or ask your own questions. If you want to contribute image processing algorithms, other enhancements, or bug fixes, open an <a href="https://github.com/ImageMagick/ImageMagick/issues">issue</a>. </p>
257</div>
258    </div>
259  </main><!-- /.container -->
260  <footer class="magick-footer">
261    <p><a href="../../www/security-policy.html">Security</a> •
262    <a href="../../www/architecture.html">Architecture</a> •
263    <a href="../../www/links.html">Related</a> •
264     <a href="../../www/sitemap.html">Sitemap</a>
265
266    <a href="quantize.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../images/wand.ico"/></a>
267
268    <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
269    <a href="../../www/support.html">Donate</a> •
270    <a href="../../www/contact.html">Contact Us</a>
271    <br/>
272    <small>© 1999-2019 ImageMagick Studio LLC</small></p>
273  </footer>
274
275  <!-- Javascript assets -->
276  <script src="../assets/magick.js" crossorigin="anonymous"></script>
277  <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script>
278</body>
279</html>
280