| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
<!DOCTYPE html> |
| 5 |
<html lang="en" data-bs-theme="dark"> |
| 6 |
<head> |
| 7 |
<meta charset="utf-8" /> |
| 8 |
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> |
| 9 |
|
| 10 |
|
| 11 |
<title>ImageMagick | Command-line Tools: Compare</title> |
| 12 |
<meta name="description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." /> |
| 13 |
|
| 14 |
|
| 15 |
<link rel="canonical" href="compare.html" /> |
| 16 |
|
| 17 |
|
| 18 |
<meta name="robots" content="index, follow" /> |
| 19 |
|
| 20 |
|
| 21 |
<meta name="theme-color" content="#000000" /> |
| 22 |
|
| 23 |
|
| 24 |
<meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> |
| 25 |
|
| 26 |
|
| 27 |
<link rel="shortcut icon" href="../images/wand.png" type="images/png" /> |
| 28 |
<link rel="apple-touch-icon" href="../images/wand.png" type="images/png" /> |
| 29 |
|
| 30 |
|
| 31 |
<link rel="preconnect" href="../index.html" /> |
| 32 |
|
| 33 |
|
| 34 |
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" as="style" crossorigin="anonymous" /> |
| 35 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" /> |
| 36 |
|
| 37 |
|
| 38 |
<style> |
| 39 |
html { |
| 40 |
scroll-padding-top: 70px; |
| 41 |
} |
| 42 |
a.nav-link:hover, |
| 43 |
a.dropdown-item:hover { |
| 44 |
color: #ffc107 !important; |
| 45 |
text-shadow: 0px 2px 4px rgba(255, 193, 7, 0.8); |
| 46 |
} |
| 47 |
.btn-outline-warning { |
| 48 |
color: #cd7f32; |
| 49 |
border-color: #cd7f32; |
| 50 |
} |
| 51 |
.navbar-brand { |
| 52 |
color: #d4af37; |
| 53 |
transition: color 0.3s ease, text-shadow 0.3s ease; |
| 54 |
} |
| 55 |
.navbar-brand:hover { |
| 56 |
color: #e9c03d; |
| 57 |
text-shadow: 0px 2px 4px rgba(203, 163, 120, 0.6); |
| 58 |
} |
| 59 |
</style> |
| 60 |
|
| 61 |
|
| 62 |
<meta property="og:title" content="ImageMagick | Command-line Tools: Compare" /> |
| 63 |
<meta property="og:description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." /> |
| 64 |
<meta property="og:image" content="../images/logo.png" /> |
| 65 |
<meta property="og:logo" content="../images/logo.png" /> |
| 66 |
<meta property="og:url" content="../www/compare.html" /> |
| 67 |
<meta property="og:type" content="website" /> |
| 68 |
<meta property="og:site_name" content="ImageMagick" /> |
| 69 |
<meta property="og:locale" content="en_us" /> |
| 70 |
|
| 71 |
|
| 72 |
<meta name="twitter:card" content="summary_large_image" /> |
| 73 |
<meta name="twitter:site" content="@imagemagick" /> |
| 74 |
<meta name="twitter:creator" content="@imagemagick" /> |
| 75 |
<meta name="twitter:title" content="ImageMagick | Command-line Tools: Compare" /> |
| 76 |
<meta name="twitter:description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." /> |
| 77 |
<meta name="twitter:image" content="../images/logo.png" /> |
| 78 |
<meta name="twitter:image:alt" content="ImageMagick logo and tag line" /> |
| 79 |
|
| 80 |
|
| 81 |
<script type="application/ld+json"> |
| 82 |
{ |
| 83 |
"@context": "https://schema.org", |
| 84 |
"@type": "SoftwareApplication", |
| 85 |
"name": "ImageMagick", |
| 86 |
"url": "../www/compare.html", |
| 87 |
"image": "../images/logo.png", |
| 88 |
"description": "ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers.", |
| 89 |
"applicationCategory": "Multimedia", |
| 90 |
"operatingSystem": "Windows, macOS, Linux, Unix", |
| 91 |
"softwareVersion": "7.1.2-3", |
| 92 |
"license": "../www/license.html", |
| 93 |
"creator": { |
| 94 |
"@type": "Organization", |
| 95 |
"name": "ImageMagick Studio LLC", |
| 96 |
"url": "https://imagemagick.org" |
| 97 |
}, |
| 98 |
"keywords": [ |
| 99 |
"Command-line Tools: Compare", |
| 100 |
"image processing software", |
| 101 |
"image conversion tool", |
| 102 |
"batch image editing", |
| 103 |
"open-source image editor", |
| 104 |
"ImageMagick command-line", |
| 105 |
"resize images ImageMagick", |
| 106 |
"crop and rotate images", |
| 107 |
"ImageMagick tutorial", |
| 108 |
"ImageMagick automation", |
| 109 |
"ImageMagick for developers", |
| 110 |
"ImageMagick CLI", |
| 111 |
"ImageMagick filters and effects", |
| 112 |
"ImageMagick scripting", |
| 113 |
"ImageMagick API integration" |
| 114 |
], |
| 115 |
"sameAs": [ |
| 116 |
"https://github.com/ImageMagick", |
| 117 |
"https://x.com/imagemagick" |
| 118 |
], |
| 119 |
"offers": { |
| 120 |
"@type": "Offer", |
| 121 |
"price": "0.00", |
| 122 |
"priceCurrency": "USD" |
| 123 |
} |
| 124 |
} |
| 125 |
</script> |
| 126 |
|
| 127 |
</head> |
| 128 |
<body> |
| 129 |
<script> |
| 130 |
function setTheme(theme) { |
| 131 |
localStorage.setItem('theme', theme); |
| 132 |
updateThemeIcon(theme); |
| 133 |
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? getSystemTheme() : theme); |
| 134 |
} |
| 135 |
function getSystemTheme() { |
| 136 |
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; |
| 137 |
} |
| 138 |
function updateThemeIcon(theme) { |
| 139 |
const iconMap = { |
| 140 |
light: '☀️', |
| 141 |
dark: '🌙', |
| 142 |
auto: '🌓' |
| 143 |
}; |
| 144 |
document.getElementById('currentThemeIcon').textContent = iconMap[theme] || '🌓'; |
| 145 |
} |
| 146 |
document.addEventListener('DOMContentLoaded', () => { |
| 147 |
const savedTheme = localStorage.getItem('theme') || 'auto'; |
| 148 |
setTheme(savedTheme); |
| 149 |
}); |
| 150 |
</script> |
| 151 |
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top"> |
| 152 |
<div class="container-fluid"> |
| 153 |
<a class="navbar-brand fw-bold" href="../index.html" title="$meta->sitename;"> |
| 154 |
ImageMagick </a> |
| 155 |
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation"> |
| 156 |
<span class="navbar-toggler-icon"></span> |
| 157 |
</button> |
| 158 |
|
| 159 |
<div class="collapse navbar-collapse" id="magick-navbars"> |
| 160 |
<ul class="navbar-nav me-auto"> |
| 161 |
<li class="nav-item"> |
| 162 |
<a class="nav-link " href="download.html">Download</a> |
| 163 |
</li> |
| 164 |
<li class="nav-item"> |
| 165 |
<a class="nav-link " href="command-line-tools.html">Tools</a> |
| 166 |
</li> |
| 167 |
<li class="nav-item"> |
| 168 |
<a class="nav-link " href="command-line-processing.html">CLI</a> |
| 169 |
</li> |
| 170 |
<li class="nav-item"> |
| 171 |
<a class="nav-link " href="develop.html">Develop</a> |
| 172 |
</li> |
| 173 |
<li class="nav-item"> |
| 174 |
<a class="nav-link" rel="noopener noreferrer" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a> |
| 175 |
</li> |
| 176 |
<li class="nav-item ms-4"> |
| 177 |
<iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe> |
| 178 |
</li> |
| 179 |
</ul> |
| 180 |
<ul class="navbar-nav ms-auto"> |
| 181 |
<li class="nav-item ms-3"> |
| •182 |
</li> |
| 183 |
<li class="nav-item dropdown ms-3"> |
| 184 |
<a class="nav-link dropdown-toggle" href="#" id="themeDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> |
| 185 |
<span id="currentThemeIcon">🌓</span> |
| 186 |
</a> |
| 187 |
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="themeDropdown"> |
| 188 |
<li><a class="dropdown-item" href="#" onclick="setTheme('light')">☀️ Light</a></li> |
| 189 |
<li><a class="dropdown-item" href="#" onclick="setTheme('dark')">🌙 Dark</a></li> |
| 190 |
<li><a class="dropdown-item" href="#" onclick="setTheme('auto')">🌓 Auto</a></li> |
| 191 |
</ul> |
| 192 |
</li> |
| 193 |
</ul> |
| 194 |
</div> |
| 195 |
</div> |
| 196 |
</nav> |
| 197 |
|
| 198 |
<div class="col-lg-8 mx-auto text-body-secondary pt-5 pt-lg-5"> |
| 199 |
<header class="d-flex align-items-center pb-3 mb-5 border-bottom"> |
| 200 |
<div class="mt-3 ms-3"> |
| 201 |
<a href="../index.html" class="text-decoration-none"> |
| 202 |
<h1 class="fs-2 mb-1">Command-line Tools: Compare</h1> |
| 203 |
</a> |
| 204 |
<h2 class="fs-5 text-muted">ImageMagick</h2> |
| 205 |
</div> |
| 206 |
</header> |
| 207 |
|
| 208 |
<main role="main" class="container"> |
| 209 |
<div> |
| 210 |
<p class="text-center"><a href="#usage">Example Usage</a> • <a href="#options">Option Summary</a></p> |
| 211 |
|
| 212 |
<p class="lead">Use the <samp>compare</samp> 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 <samp>compare</samp> command or see below for example usages of the command.</p> |
| 213 |
|
| 214 |
<h2><a class="anchor" id="usage"></a>Example Usage</h2> |
| 215 |
|
| 216 |
<p>We list a few examples of the <samp>compare</samp> command here to illustrate its usefulness and ease of use. To get started, lets compare an image to one that's been sharpened:</p> |
| 217 |
|
| 218 |
<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick rose.jpg -sharpen 0x1 reconstruct.jpg |
| 219 |
magick compare rose.jpg reconstruct.jpg difference.png |
| 220 |
magick compare -compose src rose.jpg reconstruct.jpg difference.png </samp></pre> |
| 221 |
|
| 222 |
<ul> |
| 223 |
<a href="../images/rose.jpg"><img src="../images/rose.jpg" width="70" height="46" alt="rose" /></a> |
| 224 |
<a href="../images/reconstruct.jpg"><img src="../images/reconstruct.jpg" width="70" height="46" alt="rose" /></a> |
| 225 |
<img style="margin:13px 0;" src="../images/right.gif" width="20" height="20" alt="==>" /> |
| 226 |
<a href="../images/difference.png"><img src="../images/difference.png" width="70" height="46" alt="rose" /></a> |
| 227 |
</ul> |
| 228 |
|
| 229 |
<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> |
| 230 |
|
| 231 |
<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> |
| 232 |
|
| 233 |
<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick compare -verbose -metric rmse rose.jpg reconstruct.jpg difference.png |
| 234 |
Image: rose.jpg |
| 235 |
Channel distortion: RMSE |
| 236 |
red: 2833.91 (0.0432427) |
| 237 |
green: 2401.45 (0.0366438) |
| 238 |
blue: 2560.43 (0.0390696) |
| 239 |
all: 2604.73 (0.0397456) |
| 240 |
</samp></pre> |
| 241 |
<p>Or, if you just want the red channel distortion, use this command:</p> |
| 242 |
|
| 243 |
<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick compare -channel red -metric PSNR rose.jpg reconstruct.jpg difference.png |
| 244 |
27.2817 (0.227348) </samp></pre> |
| 245 |
|
| 246 |
<p>Or, if you just want the overall image distortion, use this command:</p> |
| 247 |
|
| 248 |
<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick compare -metric PSNR rose.jpg reconstruct.jpg difference.png |
| 249 |
28.0142 (0.233452) </samp></pre> |
| 250 |
|
| 251 |
<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> |
| 252 |
|
| 253 |
<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick compare -metric NCC -subimage-search logo.png hat.png similarity.pfm |
| 254 |
0 (0) @ 417,44 [0] |
| 255 |
$ magick identify -define identify:locate=maximum -define identify:limit=1 similarity.pfm |
| 256 |
Channel maximum locations: |
| 257 |
Gray: 65532.9 (0.999967) 417,44 |
| 258 |
</samp></pre> |
| 259 |
|
| 260 |
<p>The value in the brackets is the normalized simularity metric.</p> |
| 261 |
|
| 262 |
<p>Note, similarity search respects the virtual page offset. To ensure expected results, make sure your image page offset is +0+0.</p> |
| 263 |
|
| 264 |
<p>The subimage search feature in ImageMagick can be quite slow due to its iterative nature. However, if your release of ImageMagick includes FFTW (Fastest Fourier Transform in the West) support and your metric is DPC, MSE, NCC, RMSE, PHASE, or PSNR, you can expect an order of magnitude speed increase in processing time. For discussion, refer to <a href="https://github.com/ImageMagick/ImageMagick/discussions/3950" target="_blank">Accelerated Subimage-search Compare</a>.</p> |
| 265 |
|
| 266 |
<p>If the <samp>-subimage-search</samp> option is not enabled, ImageMagick performs a direct pixel-by-pixel comparison between the two images, starting from their page offset, typically the top-left corners. In cases where the images differ in size, the smaller image is aligned with the larger one. The extra areas in the smaller image are treated as virtual pixels. These virtual pixels can be processed according to the chosen virtual pixel method, which influences how unmatched regions are handled in the comparison. Consequently, the comparison metrics may be affected by these additional areas, potentially impacting the overall similarity assessment. To only compare authentic pixels, use <samp>-define compare:virtual-pixels=false</samp>.</p> |
| 267 |
|
| 268 |
<p>You can find additional examples of using <samp>compare</samp> in <a href="../index.html">Examples of ImageMagick Usage</a>.</p> |
| 269 |
|
| 270 |
<p>Two images are considered similar if their difference according to the specified metric and fuzz value is 0, with the exception of the normalized cross correlation metric (NCC), where two images are considered similar when their normalized cross correlation is 1. The default metric is NCC.</p> |
| 271 |
|
| 272 |
<p>The compare program returns 2 on error, 0 if the images are similar, or a value between 0 and 1 if they are not similar.</p> |
| 273 |
|
| 274 |
<h2><a class="anchor" id="options"></a>Option Summary</h2> |
| 275 |
|
| 276 |
<p>The <samp>compare</samp> command recognizes these options. Click on an option to get more details about how that option works.</p> |
| 277 |
|
| 278 |
<table class="table table-sm table-hover table-striped table-responsive"> |
| 279 |
<tbody> |
| 280 |
<tr> |
| 281 |
<th align="left">Option</th> |
| 282 |
<th align="left">Description</th> |
| 283 |
</tr> |
| 284 |
|
| 285 |
<tr> |
| 286 |
<td><a href="command-line-options.html#adjoin">-adjoin</a></td> |
| 287 |
<td>join images into a single multi-image file</td> |
| 288 |
</tr> |
| 289 |
|
| 290 |
<tr> |
| 291 |
<td><a href="command-line-options.html#alpha">-alpha</a></td> |
| 292 |
<td>on, activate, off, deactivate, set, opaque, copy", |
| 293 |
transparent, extract, background, or shape the alpha channel</td> |
| 294 |
</tr> |
| 295 |
|
| 296 |
<tr> |
| 297 |
<td><a href="command-line-options.html#authenticate">-authenticate <var>value</var></a></td> |
| 298 |
<td>decrypt image with this password</td> |
| 299 |
</tr> |
| 300 |
|
| 301 |
<tr> |
| 302 |
<td><a href="command-line-options.html#auto-orient">-auto-orient</a></td> |
| 303 |
<td>automagically orient image</td> |
| 304 |
</tr> |
| 305 |
|
| 306 |
<tr> |
| 307 |
<td><a href="command-line-options.html#background">-background <var>color</var></a></td> |
| 308 |
<td>background color</td> |
| 309 |
</tr> |
| 310 |
|
| 311 |
<tr> |
| 312 |
<td><a href="command-line-options.html#brightness-contrast">-brightness-contrast <var>geometry</var></a></td> |
| 313 |
<td>improve brightness / contrast of the image</td> |
| 314 |
</tr> |
| 315 |
|
| 316 |
<tr> |
| 317 |
<td><a href="command-line-options.html#channel">-channel <var>type</var></a></td> |
| 318 |
<td>apply option to select image channels</td> |
| 319 |
</tr> |
| 320 |
|
| 321 |
<tr> |
| 322 |
<td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td> |
| 323 |
<td>set image colorspace</td> |
| 324 |
</tr> |
| 325 |
|
| 326 |
<tr> |
| 327 |
<td><a href="command-line-options.html#compose">-compose <var>operator</var></a></td> |
| 328 |
<td>set image composite operator</td> |
| 329 |
</tr> |
| 330 |
|
| 331 |
<tr> |
| 332 |
<td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td> |
| 333 |
<td>crop the image</td> |
| 334 |
</tr> |
| 335 |
|
| 336 |
<tr> |
| 337 |
<td><a href="command-line-options.html#decipher">-decipher <var>filename</var></a></td> |
| 338 |
<td>convert cipher pixels to plain</td> |
| 339 |
</tr> |
| 340 |
|
| 341 |
<tr> |
| 342 |
<td><a href="command-line-options.html#debug">-debug <var>events</var></a></td> |
| 343 |
<td>display copious debugging information</td> |
| 344 |
</tr> |
| 345 |
|
| 346 |
<tr> |
| 347 |
<td><a href="command-line-options.html#define">-define <var>format:option</var></a></td> |
| 348 |
<td>define one or more image format options</td> |
| 349 |
</tr> |
| 350 |
|
| 351 |
<tr> |
| 352 |
<td><a href="command-line-options.html#density">-density <var>geometry</var></a></td> |
| 353 |
<td>horizontal and vertical density of the image</td> |
| 354 |
</tr> |
| 355 |
|
| 356 |
<tr> |
| 357 |
<td><a href="command-line-options.html#depth">-depth <var>value</var></a></td> |
| 358 |
<td>image depth</td> |
| 359 |
</tr> |
| 360 |
|
| 361 |
<tr> |
| 362 |
<td><a href="command-line-options.html#dissimilarity-threshold">-dissimilarity-threshold <var>value</var></a></td> |
| 363 |
<td>maximum distortion for (sub)image match (default 0.2)</td> |
| 364 |
</tr> |
| 365 |
|
| 366 |
<tr> |
| 367 |
<td><a href="command-line-options.html#distort">-distort <var>type coefficients</var></a></td> |
| 368 |
<td>distort image</td> |
| 369 |
</tr> |
| 370 |
|
| 371 |
<tr> |
| 372 |
<td><a href="command-line-options.html#encipher">-encipher <var>filename</var></a></td> |
| 373 |
<td>convert plain pixels to cipher pixels</td> |
| 374 |
</tr> |
| 375 |
|
| 376 |
<tr> |
| 377 |
<td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td> |
| 378 |
<td>extract area from image</td> |
| 379 |
</tr> |
| 380 |
|
| 381 |
<tr> |
| 382 |
<td><a href="command-line-options.html#fuzz">-fuzz <var>distance</var></a></td> |
| 383 |
<td>colors within this distance are considered equal</td> |
| 384 |
</tr> |
| 385 |
|
| 386 |
<tr> |
| 387 |
<td><a href="command-line-options.html#gravity">-gravity <var>type</var></a></td> |
| 388 |
<td>horizontal and vertical text placement</td> |
| 389 |
</tr> |
| 390 |
|
| 391 |
<tr> |
| 392 |
<td><a href="command-line-options.html#help">-help</a></td> |
| 393 |
<td>print program options</td> |
| 394 |
</tr> |
| 395 |
|
| 396 |
<tr> |
| 397 |
<td><a href="command-line-options.html#highlight-color">-highlight-color <var>color</var></a></td> |
| 398 |
<td>emphasize pixel differences with this color</td> |
| 399 |
</tr> |
| 400 |
|
| 401 |
<tr> |
| 402 |
<td><a href="command-line-options.html#identify">-identify</a></td> |
| 403 |
<td>identify the format and characteristics of the image</td> |
| 404 |
</tr> |
| 405 |
|
| 406 |
<tr> |
| 407 |
<td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td> |
| 408 |
<td>type of image interlacing scheme</td> |
| 409 |
</tr> |
| 410 |
|
| 411 |
<tr> |
| 412 |
<td><a href="command-line-options.html#level">-level <var>value</var></a></td> |
| 413 |
<td>adjust the level of image contrast</td> |
| 414 |
</tr> |
| 415 |
|
| 416 |
<tr> |
| 417 |
<td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td> |
| 418 |
<td>pixel cache resource limit</td> |
| 419 |
</tr> |
| 420 |
|
| 421 |
<tr> |
| 422 |
<td><a href="command-line-options.html#log">-log <var>format</var></a></td> |
| 423 |
<td>format of debugging information</td> |
| 424 |
</tr> |
| 425 |
|
| 426 |
<tr> |
| 427 |
<td><a href="command-line-options.html#lowlight-color">-lowlight-color <var>color</var></a></td> |
| 428 |
<td>de-emphasize pixel differences with this color</td> |
| 429 |
</tr> |
| 430 |
|
| 431 |
<tr> |
| 432 |
<td><a href="command-line-options.html#metric">-metric <var>type</var></a></td> |
| 433 |
<td>measure differences between images with this metric. The default metric is RMSE.</td> |
| 434 |
</tr> |
| 435 |
|
| 436 |
<tr> |
| 437 |
<td><a href="command-line-options.html#negate">-negate</a></td> |
| 438 |
<td>replace each pixel with its complementary color </td> |
| 439 |
</tr> |
| 440 |
|
| 441 |
<tr> |
| 442 |
<td><a href="command-line-options.html#profile">-profile <var>filename</var></a></td> |
| 443 |
<td>add, delete, or apply an image profile</td> |
| 444 |
</tr> |
| 445 |
|
| 446 |
<tr> |
| 447 |
<td><a href="command-line-options.html#quality">-quality <var>value</var></a></td> |
| 448 |
<td>JPEG/MIFF/PNG compression level</td> |
| 449 |
</tr> |
| 450 |
|
| 451 |
<tr> |
| 452 |
<td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td> |
| 453 |
<td>reduce image colors in this colorspace</td> |
| 454 |
</tr> |
| 455 |
|
| 456 |
<tr> |
| 457 |
<td><a href="command-line-options.html#quiet">-quiet</a></td> |
| 458 |
<td>suppress all warning messages</td> |
| 459 |
</tr> |
| 460 |
|
| 461 |
<tr> |
| 462 |
<td><a href="command-line-options.html#read-mask">-read-mask <var>filename</var></a></td> |
| 463 |
<td>associate a read mask with the image</td> |
| 464 |
</tr> |
| 465 |
|
| 466 |
<tr> |
| 467 |
<td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td> |
| 468 |
<td>pay attention to warning messages.</td> |
| 469 |
</tr> |
| 470 |
|
| 471 |
<tr> |
| 472 |
<td><a href="command-line-options.html#repage">-repage <var>geometry</var></a></td> |
| 473 |
<td>size and location of an image canvas</td> |
| 474 |
</tr> |
| 475 |
|
| 476 |
<tr> |
| 477 |
<td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td> |
| 478 |
<td>resize the image</td> |
| 479 |
</tr> |
| 480 |
|
| 481 |
<tr> |
| 482 |
<td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td> |
| 483 |
<td>settings remain in effect until parenthesis boundary.</td> |
| 484 |
</tr> |
| 485 |
|
| 486 |
<tr> |
| 487 |
<td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td> |
| 488 |
<td>apply Paeth rotation to the image</td> |
| 489 |
</tr> |
| 490 |
|
| 491 |
<tr> |
| 492 |
<td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td> |
| 493 |
<td>horizontal and vertical sampling factor</td> |
| 494 |
</tr> |
| 495 |
|
| 496 |
<tr> |
| 497 |
<td><a href="command-line-options.html#seed">-seed <var>value</var></a></td> |
| 498 |
<td>seed a new sequence of pseudo-random numbers</td> |
| 499 |
</tr> |
| 500 |
|
| 501 |
<tr> |
| 502 |
<td><a href="command-line-options.html#separate">-separate</a></td> |
| 503 |
<td>separate an image channel into a grayscale image</td> |
| 504 |
</tr> |
| 505 |
|
| 506 |
<tr> |
| 507 |
<td><a href="command-line-options.html#set">-set <var>attribute value</var></a></td> |
| 508 |
<td>set an image attribute</td> |
| 509 |
</tr> |
| 510 |
|
| 511 |
<tr> |
| 512 |
<td><a href="command-line-options.html#sigmoidal">-sigmoidal-contrast <var>geometry</var></a></td> |
| 513 |
<td>increase the contrast without saturating highlights or shadows</td> |
| 514 |
</tr> |
| 515 |
|
| 516 |
<tr> |
| 517 |
<td><a href="command-line-options.html#similarity-threshold">-similarity-threshold <var>value</var></a></td> |
| 518 |
<td>minimum distortion for (sub)image match (default 0.0)</td> |
| 519 |
</tr> |
| 520 |
|
| 521 |
<tr> |
| 522 |
<td><a href="command-line-options.html#size">-size <var>geometry</var></a></td> |
| 523 |
<td>width and height of image</td> |
| 524 |
</tr> |
| 525 |
|
| 526 |
<tr> |
| 527 |
<td><a href="command-line-options.html#subimage-search">-subimage-search</a></td> |
| 528 |
<td>search for subimage</td> |
| 529 |
</tr> |
| 530 |
|
| 531 |
<tr> |
| 532 |
<td><a href="command-line-options.html#synchronize">-synchronize</a></td> |
| 533 |
<td>synchronize image to storage device</td> |
| 534 |
</tr> |
| 535 |
|
| 536 |
<tr> |
| 537 |
<td><a href="command-line-options.html#taint">-taint</a></td> |
| 538 |
<td>mark the image as modified</td> |
| 539 |
</tr> |
| 540 |
|
| 541 |
<tr> |
| 542 |
<td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td> |
| 543 |
<td>transparent color</td> |
| 544 |
</tr> |
| 545 |
|
| 546 |
<tr> |
| 547 |
<td><a href="command-line-options.html#trim">-trim</a></td> |
| 548 |
<td>trim image edges</td> |
| 549 |
</tr> |
| 550 |
|
| 551 |
<tr> |
| 552 |
<td><a href="command-line-options.html#verbose">-verbose</a></td> |
| 553 |
<td>print detailed information about the image</td> |
| 554 |
</tr> |
| 555 |
|
| 556 |
<tr> |
| 557 |
<td><a href="command-line-options.html#version">-version</a></td> |
| 558 |
<td>print version information</td> |
| 559 |
</tr> |
| 560 |
|
| 561 |
<tr> |
| 562 |
<td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td> |
| 563 |
<td>access method for pixels outside the boundaries of the image</td> |
| 564 |
</tr> |
| 565 |
|
| 566 |
<tr> |
| 567 |
<td><a href="command-line-options.html#write-mask">-write-mask <var>filename</var></a></td> |
| 568 |
<td>associate a write mask with the image</td> |
| 569 |
</tr> |
| •570 |
</tbody> |
| 571 |
</table> |
| 572 |
</div> |
| 573 |
<a aria-label="About ImageMagick" class="btn btn-outline-warning mt-3" href="../index.html">About ImageMagick</a> |
| 574 |
</main> |
| 575 |
<footer class="text-center pt-5 my-5 text-body-secondary border-top"> |
| 576 |
<div class="container-fluid"> |
| 577 |
<a href="security-policy.html">Security</a> • |
| 578 |
<a href="../www/news.html">News</a> |
| 579 |
|
| 580 |
<a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico" /></a> |
| 581 |
|
| 582 |
<a href="../www/links.html">Related</a> • |
| 583 |
<a href="../www/sitemap.html">Sitemap</a> |
| •584 |
<br /> |
| 585 |
<a href="../www/support.html">Sponsor</a> • |
| 586 |
<a href="../www/cite.html">Cite</a> • |
| 587 |
<a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • |
| 588 |
<a href="../www/https://imagemagick.org/script/contact.php">Contact Us</a> |
| •589 |
<br /> |
| 590 |
<a href="https://github.com/imagemagick/imagemagick" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> • |
| 591 |
<a href="https://twitter.com/imagemagick" rel="noopener noreferrer" target="_blank" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"/></svg></a> |
| •592 |
<br /> |
| 593 |
<small>Copyright © 1999 ImageMagick Studio LLC</small> |
| 594 |
</div> |
| 595 |
</footer> |
| 596 |
</div> |
| 597 |
|
| 598 |
|
| 599 |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script> |
| 600 |
~ |
| 601 |
</body> |
| 602 |
</html> |
| 603 |
|