Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 1 | |
| 2 | |
| 3 | |
| 4 | |
cristy | 29dc865 | 2015-05-12 16:26:21 +0000 | [diff] [blame] | 5 | <!DOCTYPE html> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 6 | <html lang="en"> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 7 | <head> |
Cristy | 912a922 | 2016-06-17 15:37:28 -0400 | [diff] [blame] | 8 | <meta charset="utf-8" /> |
Cristy | 3b0b58d | 2016-11-06 07:40:23 -0500 | [diff] [blame] | 9 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 10 | <meta http-equiv="x-ua-compatible" content="ie=edge" /> |
Cristy | 6549abb | 2016-11-10 08:25:55 -0500 | [diff] [blame] | 11 | <title>Command-line Tools: Compare @ ImageMagick</title> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 12 | <meta http-equiv="content-type" content="text/html; charset=utf-8"/> |
| 13 | <meta name="application-name" content="ImageMagick"/> |
| 14 | <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, 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."/> |
Cristy | 364a72f | 2016-11-04 22:38:41 -0400 | [diff] [blame] | 15 | <meta name="application-url" content="https://www.imagemagick.org"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 16 | <meta name="generator" content="PHP"/> |
| 17 | <meta name="keywords" content="command-line, tools:, compare, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/> |
| 18 | <meta name="rating" content="GENERAL"/> |
| 19 | <meta name="robots" content="INDEX, FOLLOW"/> |
| 20 | <meta name="generator" content="ImageMagick Studio LLC"/> |
| 21 | <meta name="author" content="ImageMagick Studio LLC"/> |
| 22 | <meta name="revisit-after" content="2 DAYS"/> |
| 23 | <meta name="resource-type" content="document"/> |
Cristy | fe36f99 | 2016-12-29 20:24:13 -0500 | [diff] [blame] | 24 | <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 25 | <meta name="distribution" content="Global"/> |
| 26 | <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/> |
Cristy | 912a922 | 2016-06-17 15:37:28 -0400 | [diff] [blame] | 27 | <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> |
Cristy | 6549abb | 2016-11-10 08:25:55 -0500 | [diff] [blame] | 28 | <link rel="canonical" href="https://www.imagemagick.org/script/compare.html"/> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 29 | <link rel="icon" href="../images/wand.png"/> |
| 30 | <link rel="shortcut icon" href="../images/wand.ico"/> |
Cristy | bc23242 | 2016-11-22 07:46:18 -0500 | [diff] [blame] | 31 | <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700" /> |
Cristy | ce4a355 | 2015-12-14 13:53:35 -0500 | [diff] [blame] | 32 | <link rel="stylesheet" href="css/magick.css"/> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 33 | </head> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 34 | <body> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 35 | <div class="main"> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 36 | <div class="magick-masthead"> |
| 37 | <div class="container"> |
Cristy | 6549abb | 2016-11-10 08:25:55 -0500 | [diff] [blame] | 38 | <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 39 | style="display:block" |
| 40 | data-ad-client="ca-pub-3129977114552745" |
| 41 | data-ad-slot="6345125851" |
| 42 | data-ad-format="auto"></ins> |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 43 | <script> |
Cristy | 542697a | 2015-10-12 20:10:32 -0400 | [diff] [blame] | 44 | (adsbygoogle = window.adsbygoogle || []).push({}); |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 45 | </script> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 46 | <nav class="magick-nav"> |
cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 47 | <a class="magick-nav-item " href="../index.html">Home</a> |
Cristy | 9017f3a | 2017-01-21 10:51:11 -0500 | [diff] [blame] | 48 | <a class="magick-nav-item " href="download.html">Download</a> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 49 | <a class="magick-nav-item " href="command-line-tools.html">Tools</a> |
Cristy | e93be68 | 2015-11-26 09:07:51 -0500 | [diff] [blame] | 50 | <a class="magick-nav-item " href="command-line-processing.html">Command-line</a> |
cristy | ea2793e | 2015-05-31 16:52:26 +0000 | [diff] [blame] | 51 | <a class="magick-nav-item " href="resources.html">Resources</a> |
Cristy | 9017f3a | 2017-01-21 10:51:11 -0500 | [diff] [blame] | 52 | <a class="magick-nav-item " href="develop.html">Develop</a> |
Cristy | 6549abb | 2016-11-10 08:25:55 -0500 | [diff] [blame] | 53 | <a class="magick-nav-item " href="https://www.imagemagick.org/script/search.php">Search</a> |
| 54 | <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 55 | </nav> |
| 56 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 57 | </div> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 58 | <div class="container"> |
| 59 | <div class="magick-header"> |
| 60 | <p class="text-center"><a href="compare.html#usage">Example Usage</a> • <a href="compare.html#options">Option Summary</a></p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 61 | |
Cristy | ce4a355 | 2015-12-14 13:53:35 -0500 | [diff] [blame] | 62 | <p class="lead magick-description">Use the <code>compare</code> program to mathematically and visually annotate the difference between an image and its reconstruction. See <a href="command-line-processing.html">Command Line Processing</a> for advice on how to structure your <code>compare</code> command or see below for example usages of the command.</p> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 63 | |
| 64 | <h2 class="magick-header"><a id="usage"></a>Example Usage</h2> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 65 | |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 66 | <p>We list a few examples of the <code>compare</code> command here to illustrate its usefulness and ease of use. To get started, lets compare an image to one thats been sharpened:</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 67 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 68 | <pre> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 69 | magick convert rose.jpg -sharpen 0x1 reconstruct.jpg |
| 70 | magick compare rose.jpg reconstruct.jpg difference.png |
| 71 | magick compare -compose src rose.jpg reconstruct.jpg difference.png |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 72 | </pre> |
| 73 | |
| 74 | <ul> |
Cristy | 594d277 | 2015-11-15 10:47:42 -0500 | [diff] [blame] | 75 | <a href="../images/rose.jpg"><img src="../images/rose.jpg" width="70" height="46" alt="rose" /></a> |
| 76 | <a href="../images/reconstruct.jpg"><img src="../images/reconstruct.jpg" width="70" height="46" alt="rose" /></a> |
| 77 | <img style="margin:13px 0;" src="../images/right.gif" width="20" height="20" alt="==>" /> |
| 78 | <a href="../images/difference.png"><img src="../images/difference.png" width="70" height="46" alt="rose" /></a> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 79 | </ul> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 80 | |
| 81 | <p>The red areas of the difference image emphasizes (highlight) pixels that are affected by the image sharpening, whereas white de-emphasizes (lowlight) pixels that are untouched by the sharpening process.</p> |
| 82 | |
| 83 | <p>In addition to the visual interpretation of the difference in an image and its reconstruction, we report a mathematical measure of the difference:</p> |
| 84 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 85 | <pre> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 86 | -> magick compare -verbose -metric mae rose.jpg reconstruct.jpg difference.png |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 87 | Image: rose.jpg |
| 88 | Channel distortion: MAE |
| 89 | red: 2282.91 (0.034835) |
| 90 | green: 1853.99 (0.0282901) |
| 91 | blue: 2008.67 (0.0306503) |
| 92 | all: 1536.39 (0.0234439) |
| 93 | </pre> |
| 94 | <p>Or, if you just want the red channel distortion, use this command:</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 95 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 96 | <pre> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 97 | -> magick compare -channel red -metric PSNR rose.jpg reconstruct.jpg difference.png |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 98 | 19.63 |
| 99 | </pre> |
| 100 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 101 | <p>Or, if you just want the overall image distortion, use this command:</p> |
| 102 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 103 | <pre> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 104 | -> magick compare -metric PSNR rose.jpg reconstruct.jpg difference.png |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 105 | 28.31 |
| 106 | </pre> |
| 107 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 108 | <p>If the reconstructed image is a subimage of the image, the compare program returns the best match offset. In addition, it returns a similarity image such that an exact match location is completely white and if none of the pixels match, black, otherwise some gray level in-between:</p> |
| 109 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 110 | <pre> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 111 | -> magick compare -metric RMSE -subimage-search logo.png wizard.jpg similarity.gif |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 112 | 85.05 (0.00129778) @ 353,157 |
| 113 | </pre> |
| 114 | |
Cristy | 364a72f | 2016-11-04 22:38:41 -0400 | [diff] [blame] | 115 | <p>You can find additional examples of using <code>compare</code> in <a href="http://www.ibm.com/developerworks/library/l-graf/?ca=dnt-428">Graphics from the Command Line</a>. Further discussion is available in <a href="http://www.ibm.com/developerworks/library/l-graf2/?ca=dgr-lnxw15GraphicsLine">More Graphics from the Command Line</a> and <a href="https://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p> |
cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 116 | |
| 117 | <p>The compare program returns 2 on error otherwise 0 if the images are similar or 1 if they are dissimilar.</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 118 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 119 | <h2 class="magick-header"><a id="options"></a>Option Summary</h2> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 120 | |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 121 | <p>The <code>compare</code> command recognizes these options. Click on an option to get more details about how that option works.</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 122 | |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 123 | <table class="table table-condensed table-striped"> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 124 | <tbody> |
| 125 | <tr> |
| 126 | <th align="left">Option</th> |
| 127 | <th align="left">Description</th> |
| 128 | </tr> |
| 129 | |
| 130 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 131 | <td><a href="command-line-options.html#alpha">-alpha</a></td> |
| 132 | <td>on, activate, off, deactivate, set, opaque, copy", |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 133 | transparent, extract, background, or shape the alpha channel</td> |
| 134 | </tr> |
| 135 | |
| 136 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 137 | <td><a href="command-line-options.html#authenticate">-authenticate <var>value</var></a></td> |
| 138 | <td>decrypt image with this password</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 139 | </tr> |
| 140 | |
| 141 | <tr> |
Cristy | d07f4fe | 2017-06-02 20:36:40 -0400 | [diff] [blame^] | 142 | <td><a href="command-line-options.html#background">-background <var>color</var></a></td> |
| 143 | <td>background color</td> |
| 144 | </tr> |
| 145 | |
| 146 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 147 | <td><a href="command-line-options.html#brightness-contrast">-brightness-contrast <var>geometry</var></a></td> |
| 148 | <td>improve brightness / contrast of the image</td> |
| 149 | </tr> |
| 150 | |
| 151 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 152 | <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td> |
| 153 | <td>apply option to select image channels</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 154 | </tr> |
| 155 | |
| 156 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 157 | <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td> |
| 158 | <td>set image colorspace</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 159 | </tr> |
| 160 | |
| 161 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 162 | <td><a href="command-line-options.html#compose">-compose <var>operator</var></a></td> |
| 163 | <td>set image composite operator</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 164 | </tr> |
| 165 | |
| 166 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 167 | <td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td> |
| 168 | <td>crop the image</td> |
| 169 | </tr> |
| 170 | |
| 171 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 172 | <td><a href="command-line-options.html#decipher">-decipher <var>filename</var></a></td> |
| 173 | <td>convert cipher pixels to plain</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 174 | </tr> |
| 175 | |
| 176 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 177 | <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td> |
| 178 | <td>display copious debugging information</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 179 | </tr> |
| 180 | |
| 181 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 182 | <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td> |
| 183 | <td>define one or more image format options</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 184 | </tr> |
| 185 | |
| 186 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 187 | <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td> |
| 188 | <td>horizontal and vertical density of the image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 189 | </tr> |
| 190 | |
| 191 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 192 | <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td> |
| 193 | <td>image depth</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 194 | </tr> |
| 195 | |
| 196 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 197 | <td><a href="command-line-options.html#dissimilarity-threshold">-dissimilarity-threshold <var>value</var></a></td> |
| 198 | <td>maximum distortion for (sub)image match (default 0.2)</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 199 | </tr> |
| 200 | |
| 201 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 202 | <td><a href="command-line-options.html#distort">-distort <var>type coefficients</var></a></td> |
| 203 | <td>distort image</td> |
| 204 | </tr> |
| 205 | |
| 206 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 207 | <td><a href="command-line-options.html#encipher">-encipher <var>filename</var></a></td> |
| 208 | <td>convert plain pixels to cipher pixels</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 209 | </tr> |
| 210 | |
| 211 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 212 | <td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td> |
| 213 | <td>extract area from image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 214 | </tr> |
| 215 | |
| 216 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 217 | <td><a href="command-line-options.html#fuzz">-fuzz <var>distance</var></a></td> |
| 218 | <td>colors within this distance are considered equal</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 219 | </tr> |
| 220 | |
| 221 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 222 | <td><a href="command-line-options.html#help">-help</a></td> |
| 223 | <td>print program options</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 224 | </tr> |
| 225 | |
| 226 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 227 | <td><a href="command-line-options.html#highlight-color">-highlight-color <var>color</var></a></td> |
| 228 | <td>emphasize pixel differences with this color</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 229 | </tr> |
| 230 | |
| 231 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 232 | <td><a href="command-line-options.html#identify">-identify</a></td> |
| 233 | <td>identify the format and characteristics of the image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 234 | </tr> |
| 235 | |
| 236 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 237 | <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td> |
| 238 | <td>type of image interlacing scheme</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 239 | </tr> |
| 240 | |
| 241 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 242 | <td><a href="command-line-options.html#level">-level <var>value</var></a></td> |
| 243 | <td>adjust the level of image contrast</td> |
| 244 | </tr> |
| 245 | |
| 246 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 247 | <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td> |
| 248 | <td>pixel cache resource limit</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 249 | </tr> |
| 250 | |
| 251 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 252 | <td><a href="command-line-options.html#log">-log <var>format</var></a></td> |
| 253 | <td>format of debugging information</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 254 | </tr> |
| 255 | |
| 256 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 257 | <td><a href="command-line-options.html#lowlight-color">-lowlight-color <var>color</var></a></td> |
| 258 | <td>de-emphasize pixel differences with this color</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 259 | </tr> |
| 260 | |
| 261 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 262 | <td><a href="command-line-options.html#metric">-metric <var>type</var></a></td> |
| 263 | <td>measure differences between images with this metric</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 264 | </tr> |
| 265 | |
| 266 | <tr> |
Cristy | 6fed3f1 | 2016-12-05 08:25:58 -0500 | [diff] [blame] | 267 | <td><a href="command-line-options.html#negate">-negate</a></td> |
| 268 | <td>replace each pixel with its complementary color </td> |
| 269 | </tr> |
| 270 | |
| 271 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 272 | <td><a href="command-line-options.html#profile">-profile <var>filename</var></a></td> |
| 273 | <td>add, delete, or apply an image profile</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 274 | </tr> |
| 275 | |
| 276 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 277 | <td><a href="command-line-options.html#quality">-quality <var>value</var></a></td> |
| 278 | <td>JPEG/MIFF/PNG compression level</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 279 | </tr> |
| 280 | |
| 281 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 282 | <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td> |
| 283 | <td>reduce image colors in this colorspace</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 284 | </tr> |
| 285 | |
| 286 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 287 | <td><a href="command-line-options.html#quiet">-quiet</a></td> |
| 288 | <td>suppress all warning messages</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 289 | </tr> |
| 290 | |
| 291 | <tr> |
Cristy | 579a0cb | 2016-11-26 12:27:17 -0500 | [diff] [blame] | 292 | <td><a href="command-line-options.html#read-mask">-read-mask <var>filename</var></a></td> |
| 293 | <td>associate a read mask with the image</td> |
| 294 | </tr> |
| 295 | |
| 296 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 297 | <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td> |
| 298 | <td>pay attention to warning messages.</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 299 | </tr> |
| 300 | |
| 301 | <tr> |
Cristy | d07f4fe | 2017-06-02 20:36:40 -0400 | [diff] [blame^] | 302 | <td><a href="command-line-options.html#repage">-repage <var>geometry</var></a></td> |
| 303 | <td>size and location of an image canvas</td> |
| 304 | </tr> |
| 305 | |
| 306 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 307 | <td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td> |
| 308 | <td>resize the image</td> |
| 309 | </tr> |
| 310 | |
| 311 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 312 | <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td> |
| 313 | <td>settings remain in effect until parenthesis boundary.</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 314 | </tr> |
| 315 | |
| 316 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 317 | <td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td> |
| 318 | <td>apply Paeth rotation to the image</td> |
| 319 | </tr> |
| 320 | |
| 321 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 322 | <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td> |
| 323 | <td>horizontal and vertical sampling factor</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 324 | </tr> |
| 325 | |
| 326 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 327 | <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td> |
| 328 | <td>seed a new sequence of pseudo-random numbers</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 329 | </tr> |
| 330 | |
| 331 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 332 | <td><a href="command-line-options.html#set">-set <var>attribute value</var></a></td> |
| 333 | <td>set an image attribute</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 334 | </tr> |
| 335 | |
| 336 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 337 | <td><a href="command-line-options.html#sigmoidal">-sigmoidal-contrast <var>geometry</var></a></td> |
| 338 | <td>increase the contrast without saturating highlights or shadows</td> |
| 339 | </tr> |
| 340 | |
| 341 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 342 | <td><a href="command-line-options.html#similarity-threshold">-similarity-threshold <var>value</var></a></td> |
| 343 | <td>minimum distortion for (sub)image match (default 0.0)</td> |
cristy | 8ee7f24 | 2013-06-20 16:08:44 +0000 | [diff] [blame] | 344 | </tr> |
| 345 | |
| 346 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 347 | <td><a href="command-line-options.html#size">-size <var>geometry</var></a></td> |
| 348 | <td>width and height of image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 349 | </tr> |
| 350 | |
| 351 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 352 | <td><a href="command-line-options.html#subimage-search">-subimage-search</a></td> |
| 353 | <td>search for subimage</td> |
cristy | ae6203d | 2010-08-09 01:12:14 +0000 | [diff] [blame] | 354 | </tr> |
| 355 | |
| 356 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 357 | <td><a href="command-line-options.html#synchronize">-synchronize</a></td> |
| 358 | <td>synchronize image to storage device</td> |
cristy | 5063d81 | 2010-10-19 16:28:10 +0000 | [diff] [blame] | 359 | </tr> |
| 360 | |
| 361 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 362 | <td><a href="command-line-options.html#taint">-taint</a></td> |
| 363 | <td>mark the image as modified</td> |
cristy | 5063d81 | 2010-10-19 16:28:10 +0000 | [diff] [blame] | 364 | </tr> |
| 365 | |
| 366 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 367 | <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td> |
| 368 | <td>transparent color</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 369 | </tr> |
| 370 | |
| 371 | <tr> |
Cristy | ae7da2d | 2017-05-18 09:41:17 -0400 | [diff] [blame] | 372 | <td><a href="command-line-options.html#trim">-trim</a></td> |
| 373 | <td>trim image edges</td> |
| 374 | </tr> |
| 375 | |
| 376 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 377 | <td><a href="command-line-options.html#verbose">-verbose</a></td> |
| 378 | <td>print detailed information about the image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 379 | </tr> |
| 380 | |
| 381 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 382 | <td><a href="command-line-options.html#version">-version</a></td> |
| 383 | <td>print version information</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 384 | </tr> |
| 385 | |
| 386 | <tr> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 387 | <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td> |
| 388 | <td>access method for pixels outside the boundaries of the image</td> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 389 | </tr> |
| 390 | |
Cristy | fe36f99 | 2016-12-29 20:24:13 -0500 | [diff] [blame] | 391 | <tr> |
| 392 | <td><a href="command-line-options.html#write-mask">-read-mask <var>filename</var></a></td> |
| 393 | <td>associate a write mask with the image</td> |
| 394 | </tr> |
| 395 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 396 | </tbody> |
| 397 | </table> |
cristy | 751980d | 2012-06-03 23:18:35 +0000 | [diff] [blame] | 398 | </div> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 399 | <footer class="magick-footer"> |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 400 | <p><a href="support.html">Donate</a> • |
| 401 | <a href="sitemap.html">Sitemap</a> • |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 402 | <a href="links.html">Related</a> • |
Cristy | e077971 | 2016-07-30 17:25:22 -0400 | [diff] [blame] | 403 | <a href="security-policy.html">Security</a> • |
cristy | 29f2c97 | 2015-07-28 13:37:46 +0000 | [diff] [blame] | 404 | <a href="architecture.html">Architecture</a> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 405 | </p> |
| 406 | <p><a href="compare.html#">Back to top</a> • |
cristy | ea2793e | 2015-05-31 16:52:26 +0000 | [diff] [blame] | 407 | <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • |
Cristy | 6549abb | 2016-11-10 08:25:55 -0500 | [diff] [blame] | 408 | <a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p> |
Cristy | fe36f99 | 2016-12-29 20:24:13 -0500 | [diff] [blame] | 409 | <p><small>© 1999-2017 ImageMagick Studio LLC</small></p> |
cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 410 | </footer> |
| 411 | </div><!-- /.container --> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 412 | |
Cristy | b7f455a | 2017-03-03 19:30:34 -0500 | [diff] [blame] | 413 | <script src="https://localhost/ajax/libs/jquery/1.12.4/jquery.min.js"></script> |
Cristy | 1f1f3a0 | 2016-06-01 07:25:42 -0400 | [diff] [blame] | 414 | <script src="../js/magick.html"></script> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 415 | </div> |
cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 416 | </body> |
cristy | 5a367e4 | 2015-05-05 12:39:18 +0000 | [diff] [blame] | 417 | </html> |
Cristy | d07f4fe | 2017-06-02 20:36:40 -0400 | [diff] [blame^] | 418 | <!-- Magick Cache 2nd June 2017 20:19 --> |