1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 9 <title>ImageMagick: Command-line Tools: Mogrify</title> 10 <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 11 <meta name="application-name" content="ImageMagick"/> 12 <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."/> 13 <meta name="application-url" content="http://www.imagemagick.org"/> 14 <meta name="generator" content="PHP"/> 15 <meta name="keywords" content="command-line, tools:, mogrify, 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-2015 ImageMagick Studio LLC"/> 23 <meta name="distribution" content="Global"/> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/> 25 <link rel="icon" href="../image/wand.png"/> 26 <link rel="shortcut icon" href="../image/wand.ico"/> 27 <link rel="stylesheet" href="../css/magick.php"/> 28</head> 29<body> 30<div class="main"> 31<div class="magick-masthead"> 32 <div class="container"> 33 <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 34 style="display:block" 35 data-ad-client="ca-pub-3129977114552745" 36 data-ad-slot="6345125851" 37 data-ad-format="auto"></ins> 38 <script> 39 (adsbygoogle = window.adsbygoogle || []).push({}); 40 </script> 41 <nav class="magick-nav"> 42 <a class="magick-nav-item " href="../index.php">Home</a> 43 <a class="magick-nav-item " href="binary-releases.php">Download</a> 44 <a class="magick-nav-item " href="command-line-tools.php">Tools</a> 45 <a class="magick-nav-item " href="command-line-processing.php">Command-line</a> 46 <a class="magick-nav-item " href="resources.php">Resources</a> 47 <a class="magick-nav-item " href="api.php">Develop</a> 48 <a class="magick-nav-item " href="search.php">Search</a> 49 <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a> 50 </nav> 51 </div> 52</div> 53<div class="container"> 54<div class="magick-header"> 55<p class="text-center"><a href="mogrify.php#usage">Example Usage</a> • <a href="mogrify.php#options">Option Summary</a></p> 56 57<p class="lead magick-description">Use the <code>mogrify</code> program to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. This tool is similar to <a href="convert.php">convert</a> except that the original image file is overwritten (unless you change the file suffix with the <a href="command-line-options.php#format">-format</a> option) with any changes you request. See <a href="command-line-processing.php">Command Line Processing</a> for advice on how to structure your <code>mogrify</code> command or see below for sample usages of the command.</p> 58 59<h2 class="magick-header"><a id="usage"></a>Example Usage</h2> 60 61<p>We list a few examples of the <code>mogrify</code> command here to illustrate its usefulness and ease of use. To get started, let's reduce the size of our 62rose:</p> 63 64<pre> 65mogrify -resize 50% rose.jpg 66</pre> 67 68<ul> 69 <a href="../image/rose.jpg"> 70 <img src="../image/rose.jpg" width="70" height="46" alt="rose" /> 71 </a> 72 <img style="margin-top:13px; margin-bottom:13px;" src="../image/right.gif" width="20" height="20" alt="==>" /> 73 <a href="../image/rose.png"> 74 <img style="margin-top:12px; margin-bottom: 11px;" src="../image/rose.png" width="35" height="23" alt="rose" /> 75 </a> 76</ul> 77 78<p>You can resize all your JPEG images in a folder to a maximum dimension of 256x256 with this command:</p> 79 80<pre> 81mogrify -resize 256x256 *.jpg 82</pre> 83 84<p>Finally, we convert all our PNG images in a folder to the JPEG format:</p> 85 86<pre> 87mogrify -format jpg *.png 88</pre> 89 90<p>Here image files 1.png, 2.png, etc., are left untouched and files 1.jpg, 2.jpg, etc., are created. They are copies of their respective PNG images except are stored in the JPEG image format.</p> 91 92 93<p>You can find additional examples of using <code>mogrify</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="http://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p> 94 95<h2 class="magick-header"><a id="options"></a>Option Summary</h2> 96 97<p>The <code>mogrify</code> command recognizes these options. Click on an option to get more details about how that option works.</p> 98 99<table class="table table-condensed table-striped"> 100 <tbody> 101 <tr> 102 <th align="left">Option</th> 103 <th align="left">Description</th> 104 </tr> 105 106 <tr> 107 <td><a href="command-line-options.php#adaptive-blur">-adaptive-blur <var>geometry</var></a></td> 108 <td>adaptively blur pixels; decrease effect near edges</td> 109 </tr> 110 111 <tr> 112 <td><a href="command-line-options.php#adaptive-resize">-adaptive-resize <var>geometry</var></a></td> 113 <td>adaptively resize image with data dependent triangulation.</td> 114 </tr> 115 116 <tr> 117 <td><a href="command-line-options.php#adaptive-sharpen">-adaptive-sharpen <var>geometry</var></a></td> 118 <td>adaptively sharpen pixels; increase effect near edges</td> 119 </tr> 120 121 <tr> 122 <td><a href="command-line-options.php#adjoin">-adjoin</a></td> 123 <td>join images into a single multi-image file</td> 124 </tr> 125 126 <tr> 127 <td><a href="command-line-options.php#affine">-affine <var>matrix</var></a></td> 128 <td>affine transform matrix</td> 129 </tr> 130 131 <tr> 132 <td><a href="command-line-options.php#alpha">-alpha</a></td> 133 <td>on, activate, off, deactivate, set, opaque, copy", 134transparent, extract, background, or shape the alpha channel</td> 135 </tr> 136 137 <tr> 138 <td><a href="command-line-options.php#annotate">-annotate <var>geometry text</var></a></td> 139 <td>annotate the image with text</td> 140 </tr> 141 142 <tr> 143 <td><a href="command-line-options.php#antialias">-antialias</a></td> 144 <td>remove pixel-aliasing</td> 145 </tr> 146 147 <tr> 148 <td><a href="command-line-options.php#append">-append</a></td> 149 <td>append an image sequence</td> 150 </tr> 151 152 <tr> 153 <td><a href="command-line-options.php#authenticate">-authenticate <var>value</var></a></td> 154 <td>decipher image with this password</td> 155 </tr> 156 157 <tr> 158 <td><a href="command-line-options.php#auto-gamma">-auto-gamma</a></td> 159 <td>automagically adjust gamma level of image</td> 160 </tr> 161 162 <tr> 163 <td><a href="command-line-options.php#auto-level">-auto-level</a></td> 164 <td>automagically adjust color levels of image</td> 165 </tr> 166 167 <tr> 168 <td><a href="command-line-options.php#auto-orient">-auto-orient</a></td> 169 <td>automagically orient image</td> 170 </tr> 171 172 <tr> 173 <td><a href="command-line-options.php#background">-background <var>color</var></a></td> 174 <td>background color</td> 175 </tr> 176 177 <tr> 178 <td><a href="command-line-options.php#bench">-bench <var>iterations</var></a></td> 179 <td>measure performance</td> 180 </tr> 181 182 <tr> 183 <td><a href="command-line-options.php#bias">-bias <var>value</var></a></td> 184 <td>add bias when convolving an image</td> 185 </tr> 186 187 <tr> 188 <td><a href="command-line-options.php#black-threshold">-black-threshold <var>value</var></a></td> 189 <td>force all pixels below the threshold into black</td> 190 </tr> 191 192 <tr> 193 <td><a href="command-line-options.php#blue-primary">-blue-primary <var>point</var></a></td> 194 <td>chromaticity blue primary point</td> 195 </tr> 196 197 <tr> 198 <td><a href="command-line-options.php#blue-shift">-blue-shift <var>factor</var></a></td> 199 <td>simulate a scene at nighttime in the moonlight</td> 200 </tr> 201 202 <tr> 203 <td><a href="command-line-options.php#blur">-blur <var>geometry</var></a></td> 204 <td>reduce image noise and reduce detail levels</td> 205 </tr> 206 207 <tr> 208 <td><a href="command-line-options.php#border">-border <var>geometry</var></a></td> 209 <td>surround image with a border of color</td> 210 </tr> 211 212 <tr> 213 <td><a href="command-line-options.php#bordercolor">-bordercolor <var>color</var></a></td> 214 <td>border color</td> 215 </tr> 216 217 <tr> 218 <td><a href="command-line-options.php#brightness-contrast">-brightness-contrast <var>geometry</var></a></td> 219 <td>improve brightness / contrast of the image</td> 220 </tr> 221 222 <tr> 223 <td><a href="command-line-options.php#canny">-canny <var>geometry</var></a></td> 224 <td>use a multi-stage algorithm to detect a wide range of edges in the image</td> 225 </tr> 226 227 <tr> 228 <td><a href="command-line-options.php#caption">-caption <var>string</var></a></td> 229 <td>assign a caption to an image</td> 230 </tr> 231 232 <tr> 233 <td><a href="command-line-options.php#cdl">-cdl <var>filename</var></a></td> 234 <td>color correct with a color decision list</td> 235 </tr> 236 237 <tr> 238 <td><a href="command-line-options.php#channel">-channel <var>type</var></a></td> 239 <td>apply option to select image channels</td> 240 </tr> 241 242 <tr> 243 <td><a href="command-line-options.php#charcoal">-charcoal <var>radius</var></a></td> 244 <td>simulate a charcoal drawing</td> 245 </tr> 246 247 <tr> 248 <td><a href="command-line-options.php#chop">-chop <var>geometry</var></a></td> 249 <td>remove pixels from the image interior</td> 250 </tr> 251 252 <tr> 253 <td><a href="command-line-options.php#clip">-clip</a></td> 254 <td>clip along the first path from the 8BIM profile</td> 255 </tr> 256 257 <tr> 258 <td><a href="command-line-options.php#clamp">-clamp</a></td> 259 <td>set each pixel whose value is below zero to zero and any the pixel whose value is above the quantum range to the quantum range (e.g. 65535) otherwise the pixel value remains unchanged.</td> 260 </tr> 261 262 <tr> 263 <td><a href="command-line-options.php#clip-mask">-clip-mask</a> <var>filename</var></td> 264 <td>associate clip mask with the image</td> 265 </tr> 266 267 <tr> 268 <td><a href="command-line-options.php#clip-path">-clip-path <var>id</var></a></td> 269 <td>clip along a named path from the 8BIM profile</td> 270 </tr> 271 272 <tr> 273 <td><a href="command-line-options.php#clut">-clut</a></td> 274 <td>apply a color lookup table to the image</td> 275 </tr> 276 277 <tr> 278 <td><a href="command-line-options.php#complex">-complex<var>operator</var></a></td> 279 <td>perform complex mathematics on an image sequence</td> 280 </tr> 281 282 <tr> 283 <td><a href="command-line-options.php#connected-components">-connected-components <var>connectivity</var></a></td> 284 <td>connected-components uniquely labeled, choose from 4 or 8 way connectivity</td> 285 </tr> 286 287 <tr> 288 <td><a href="command-line-options.php#contrast-stretch">-contrast-stretch <var>geometry</var></a></td> 289 <td>improve the contrast in an image by `stretching' the range of intensity value</td> 290 </tr> 291 292 <tr> 293 <td><a href="command-line-options.php#coalesce">-coalesce</a></td> 294 <td>merge a sequence of images</td> 295 </tr> 296 297 <tr> 298 <td><a href="command-line-options.php#colorize">-colorize <var>value</var></a></td> 299 <td>colorize the image with the fill color</td> 300 </tr> 301 302 <tr> 303 <td><a href="command-line-options.php#color-matrix">-color-matrix <var>matrix</var></a></td> 304 <td>apply color correction to the image.</td> 305 </tr> 306 307 <tr> 308 <td><a href="command-line-options.php#colors">-colors <var>value</var></a></td> 309 <td>preferred number of colors in the image</td> 310 </tr> 311 312 <tr> 313 <td><a href="command-line-options.php#colorspace">-colorspace <var>type</var></a></td> 314 <td>set image colorspace</td> 315 </tr> 316 317 <tr> 318 <td><a href="command-line-options.php#combine">-combine</a></td> 319 <td>combine a sequence of images</td> 320 </tr> 321 322 <tr> 323 <td><a href="command-line-options.php#comment">-comment <var>string</var></a></td> 324 <td>annotate image with comment</td> 325 </tr> 326 327 <tr> 328 <td><a href="command-line-options.php#compose">-compose <var>operator</var></a></td> 329 <td>set image composite operator</td> 330 </tr> 331 332 <tr> 333 <td><a href="command-line-options.php#composite">-composite</a></td> 334 <td>composite image</td> 335 </tr> 336 337 <tr> 338 <td><a href="command-line-options.php#compress">-compress <var>type</var></a></td> 339 <td>image compression type</td> 340 </tr> 341 342 <tr> 343 <td><a href="command-line-options.php#contrast">-contrast</a></td> 344 <td>enhance or reduce the image contrast</td> 345 </tr> 346 347 <tr> 348 <td><a href="command-line-options.php#convolve">-convolve <var>coefficients</var></a></td> 349 <td>apply a convolution kernel to the image</td> 350 </tr> 351 352 <tr> 353 <td><a href="command-line-options.php#copy">-copy <var>geometry</var> <var>offset</var></a></td> 354 <td>copy pixels from one area of an image to another</td> 355 </tr> 356 357 <tr> 358 <td><a href="command-line-options.php#crop">-crop <var>geometry</var></a></td> 359 <td>crop the image</td> 360 </tr> 361 362 <tr> 363 <td><a href="command-line-options.php#cycle">-cycle <var>amount</var></a></td> 364 <td>cycle the image colormap</td> 365 </tr> 366 367 <tr> 368 <td><a href="command-line-options.php#decipher">-decipher <var>filename</var></a></td> 369 <td>convert cipher pixels to plain</td> 370 </tr> 371 372 <tr> 373 <td><a href="command-line-options.php#debug">-debug <var>events</var></a></td> 374 <td>display copious debugging information</td> 375 </tr> 376 377 <tr> 378 <td><a href="command-line-options.php#define">-define <var>format:option</var></a></td> 379 <td>define one or more image format options</td> 380 </tr> 381 382 <tr> 383 <td><a href="command-line-options.php#deconstruct">-deconstruct</a></td> 384 <td>break down an image sequence into constituent parts</td> 385 </tr> 386 387 <tr> 388 <td><a href="command-line-options.php#delay">-delay <var>value</var></a></td> 389 <td>display the next image after pausing</td> 390 </tr> 391 392 <tr> 393 <td><a href="command-line-options.php#delete">-delete <var>index</var></a></td> 394 <td>delete the image from the image sequence</td> 395 </tr> 396 397 <tr> 398 <td><a href="command-line-options.php#density">-density <var>geometry</var></a></td> 399 <td>horizontal and vertical density of the image</td> 400 </tr> 401 402 <tr> 403 <td><a href="command-line-options.php#depth">-depth <var>value</var></a></td> 404 <td>image depth</td> 405 </tr> 406 407 <tr> 408 <td><a href="command-line-options.php#despeckle">-despeckle</a></td> 409 <td>reduce the speckles within an image</td> 410 </tr> 411 412 <tr> 413 <td><a href="command-line-options.php#direction">-direction <var>type</var></a></td> 414 <td>render text right-to-left or left-to-right</td> 415 </tr> 416 417 <tr> 418 <td><a href="command-line-options.php#display">-display <var>server</var></a></td> 419 <td>get image or font from this X server</td> 420 </tr> 421 422 <tr> 423 <td><a href="command-line-options.php#dispose">-dispose <var>method</var></a></td> 424 <td>layer disposal method</td> 425 </tr> 426 427 <tr> 428 <td><a href="command-line-options.php#distort">-distort <var>type coefficients</var></a></td> 429 <td>distort image</td> 430 </tr> 431 432 <tr> 433 <td><a href="command-line-options.php#distribute-cache">-distribute-cache <var>port</var></a></td> 434 <td>launch a pixel cache server</td> 435 </tr> 436 437 <tr> 438 <td><a href="command-line-options.php#dither">-dither <var>method</var></a></td> 439 <td>apply error diffusion to image</td> 440 </tr> 441 442 <tr> 443 <td><a href="command-line-options.php#draw">-draw <var>string</var></a></td> 444 <td>annotate the image with a graphic primitive</td> 445 </tr> 446 447 <tr> 448 <td><a href="command-line-options.php#duplicate">-duplicate <var>count,indexes</var></a></td> 449 <td>duplicate an image one or more times</td> 450 </tr> 451 452 <tr> 453 <td><a href="command-line-options.php#edge">-edge <var>radius</var></a></td> 454 <td>apply a filter to detect edges in the image</td> 455 </tr> 456 457 <tr> 458 <td><a href="command-line-options.php#emboss">-emboss <var>radius</var></a></td> 459 <td>emboss an image</td> 460 </tr> 461 462 <tr> 463 <td><a href="command-line-options.php#encipher">-encipher <var>filename</var></a></td> 464 <td>convert plain pixels to cipher pixels</td> 465 </tr> 466 467 <tr> 468 <td><a href="command-line-options.php#encoding">-encoding <var>type</var></a></td> 469 <td>text encoding type</td> 470 </tr> 471 472 <tr> 473 <td><a href="command-line-options.php#endian">-endian <var>type</var></a></td> 474 <td>endianness (MSB or LSB) of the image</td> 475 </tr> 476 477 <tr> 478 <td><a href="command-line-options.php#enhance">-enhance</a></td> 479 <td>apply a digital filter to enhance a noisy image</td> 480 </tr> 481 482 <tr> 483 <td><a href="command-line-options.php#equalize">-equalize</a></td> 484 <td>perform histogram equalization to an image</td> 485 </tr> 486 487 <tr> 488 <td><a href="command-line-options.php#evaluate">-evaluate <var>operator value</var></a></td> 489 <td>evaluate an arithmetic, relational, or logical expression</td> 490 </tr> 491 492 <tr> 493 <td><a href="command-line-options.php#evaluate-sequence">-evaluate-sequence <var>operator</var></a></td> 494 <td>evaluate an arithmetic, relational, or logical expression for an image sequence</td> 495 </tr> 496 497 <tr> 498 <td><a href="command-line-options.php#extent">-extent <var>geometry</var></a></td> 499 <td>set the image size</td> 500 </tr> 501 502 <tr> 503 <td><a href="command-line-options.php#extract">-extract <var>geometry</var></a></td> 504 <td>extract area from image</td> 505 </tr> 506 507 <tr> 508 <td><a href="command-line-options.php#family">-family <var>name</var></a></td> 509 <td>render text with this font family</td> 510 </tr> 511 512 <tr> 513 <td><a href="command-line-options.php#features">-features <var>distance</var></a></td> 514 <td>analyze image features (e.g. contract, correlations, etc.).</td> 515 </tr> 516 517 <tr> 518 <td><a href="command-line-options.php#fft">-fft</a></td> 519 <td>implements the discrete Fourier transform (DFT)</td> 520 </tr> 521 522 <tr> 523 <td><a href="command-line-options.php#fill">-fill <var>color</var></a></td> 524 <td>color to use when filling a graphic primitive</td> 525 </tr> 526 527 <tr> 528 <td><a href="command-line-options.php#filter">-filter <var>type</var></a></td> 529 <td>use this filter when resizing an image</td> 530 </tr> 531 532 <tr> 533 <td><a href="command-line-options.php#flatten">-flatten</a></td> 534 <td>flatten a sequence of images</td> 535 </tr> 536 537 <tr> 538 <td><a href="command-line-options.php#flip">-flip</a></td> 539 <td>flip image in the vertical direction</td> 540 </tr> 541 542 <tr> 543 <td><a href="command-line-options.php#floodfill">-floodfill <var>geometry color</var></a></td> 544 <td>floodfill the image with color</td> 545 </tr> 546 547 <tr> 548 <td><a href="command-line-options.php#flop">-flop</a></td> 549 <td>flop image in the horizontal direction</td> 550 </tr> 551 552 <tr> 553 <td><a href="command-line-options.php#font">-font <var>name</var></a></td> 554 <td>render text with this font</td> 555 </tr> 556 557 <tr> 558 <td><a href="command-line-options.php#format">-format <var>type</var></a></td> 559 <td>output formatted image characteristics</td> 560 </tr> 561 562 <tr> 563 <td><a href="command-line-options.php#frame">-frame <var>geometry</var></a></td> 564 <td>surround image with an ornamental border</td> 565 </tr> 566 567 <tr> 568 <td><a href="command-line-options.php#function">-function <var>name</var></a></td> 569 <td>apply a function to the image</td> 570 </tr> 571 572 <tr> 573 <td><a href="command-line-options.php#fuzz">-fuzz <var>distance</var></a></td> 574 <td>colors within this distance are considered equal</td> 575 </tr> 576 577 <tr> 578 <td><a href="command-line-options.php#fx">-fx <var>expression</var></a></td> 579 <td>apply mathematical expression to an image channel(s)</td> 580 </tr> 581 582 <tr> 583 <td><a href="command-line-options.php#gamma">-gamma <var>value</var></a></td> 584 <td>level of gamma correction</td> 585 </tr> 586 587 <tr> 588 <td><a href="command-line-options.php#gaussian-blur">-gaussian-blur <var>geometry</var></a></td> 589 <td>reduce image noise and reduce detail levels</td> 590 </tr> 591 592 <tr> 593 <td><a href="command-line-options.php#geometry">-geometry <var>geometry</var></a></td> 594 <td>preferred size or location of the image</td> 595 </tr> 596 597 <tr> 598 <td><a href="command-line-options.php#gravity">-gravity <var>type</var></a></td> 599 <td>horizontal and vertical text placement</td> 600 </tr> 601 602 <tr> 603 <td><a href="command-line-options.php#intensity">-grayscale <var>method</var></a></td> 604 <td>convert image to grayscale</td> 605 </tr> 606 607 <tr> 608 <td><a href="command-line-options.php#green-primary">-green-primary <var>point</var></a></td> 609 <td>chromaticity green primary point</td> 610 </tr> 611 612 <tr> 613 <td><a href="command-line-options.php#help">-help</a></td> 614 <td>print program options</td> 615 </tr> 616 617 <tr> 618 <td><a href="command-line-options.php#hough-lines">-hough-lines <var>geometry</var></a></td> 619 <td>identify lines in the image</td> 620 </tr> 621 622 <tr> 623 <td><a href="command-line-options.php#identify">-identify</a></td> 624 <td>identify the format and characteristics of the image</td> 625 </tr> 626 627 <tr> 628 <td><a href="command-line-options.php#ift">-ifft</a></td> 629 <td>implements the inverse discrete Fourier transform (DFT)</td> 630 </tr> 631 632 <tr> 633 <td><a href="command-line-options.php#implode">-implode <var>amount</var></a></td> 634 <td>implode image pixels about the center</td> 635 </tr> 636 637 <tr> 638 <td><a href="command-line-options.php#insert">-insert <var>index</var></a></td> 639 <td>insert last image into the image sequence</td> 640 </tr> 641 642 <tr> 643 <td><a href="command-line-options.php#intensity">-intensity <var>method</var></a></td> 644 <td>method to generate an intensity value from a pixel</td> 645 </tr> 646 647 <tr> 648 <td><a href="command-line-options.php#intent">-intent <var>type</var></a></td> 649 <td>type of rendering intent when managing the image color</td> 650 </tr> 651 652 <tr> 653 <td><a href="command-line-options.php#interlace">-interlace <var>type</var></a></td> 654 <td>type of image interlacing scheme</td> 655 </tr> 656 657 <tr> 658 <td><a href="command-line-options.php#interline-spacing">-interline-spacing <var>value</var></a></td> 659 <td>the space between two text lines</td> 660 </tr> 661 662 <tr> 663 <td><a href="command-line-options.php#interpolate">-interpolate <var>method</var></a></td> 664 <td>pixel color interpolation method</td> 665 </tr> 666 667 <tr> 668 <td><a href="command-line-options.php#interword-spacing">-interword-spacing <var>value</var></a></td> 669 <td>the space between two words</td> 670 </tr> 671 672 <tr> 673 <td><a href="command-line-options.php#kerning">-kerning <var>value</var></a></td> 674 <td>the space between two characters</td> 675 </tr> 676 677 <tr> 678 <td><a href="command-line-options.php#kuwahara">-kuwahara <var>geometry</var></a></td> 679 <td>edge preserving noise reduction filter</td> 680 </tr> 681 682 <tr> 683 <td><a href="command-line-options.php#label">-label <var>string</var></a></td> 684 <td>assign a label to an image</td> 685 </tr> 686 687 <tr> 688 <td><a href="command-line-options.php#lat">-lat <var>geometry</var></a></td> 689 <td>local adaptive thresholding</td> 690 </tr> 691 692 <tr> 693 <td><a href="command-line-options.php#layers">-layers <var>method</var></a></td> 694 <td>optimize or compare image layers</td> 695 </tr> 696 697 <tr> 698 <td><a href="command-line-options.php#level">-level <var>value</var></a></td> 699 <td>adjust the level of image contrast</td> 700 </tr> 701 702 <tr> 703 <td><a href="command-line-options.php#limit">-limit <var>type value</var></a></td> 704 <td>pixel cache resource limit</td> 705 </tr> 706 707 <tr> 708 <td><a href="command-line-options.php#linear-stretch">-linear-stretch <var>geometry</var></a></td> 709 <td>linear with saturation histogram stretch</td> 710 </tr> 711 712 <tr> 713 <td><a href="command-line-options.php#liquid-rescale">-liquid-rescale <var>geometry</var></a></td> 714 <td>rescale image with seam-carving</td> 715 </tr> 716 717 <tr> 718 <td><a href="command-line-options.php#log">-log <var>format</var></a></td> 719 <td>format of debugging information</td> 720 </tr> 721 722 <tr> 723 <td><a href="command-line-options.php#loop">-loop <var>iterations</var></a></td> 724 <td>add Netscape loop extension to your GIF animation</td> 725 </tr> 726 727 <tr> 728 <td><a href="command-line-options.php#mask">-mask <var>filename</var></a></td> 729 <td>associate a mask with the image</td> 730 </tr> 731 732 <tr> 733 <td><a href="command-line-options.php#mattecolor">-mattecolor <var>color</var></a></td> 734 <td>frame color</td> 735 </tr> 736 737 <tr> 738 <td><a href="command-line-options.php#median">-median <var>radius</var></a></td> 739 <td>apply a median filter to the image</td> 740 </tr> 741 742 <tr> 743 <td><a href="command-line-options.php#mean-shift">-mean-shift <var>geometry</var></a></td> 744 <td>delineate arbitrarily shaped clusters in the image</td> 745 </tr> 746 747 <tr> 748 <td><a href="command-line-options.php#metric">-metric <var>type</var></a></td> 749 <td>measure differences between images with this metric</td> 750 </tr> 751 752 <tr> 753 <td><a href="command-line-options.php#mode">-mode <var>radius</var></a></td> 754 <td>make each pixel the 'predominant color' of the neighborhood</td> 755 </tr> 756 757 <tr> 758 <td><a href="command-line-options.php#modulate">-modulate <var>value</var></a></td> 759 <td>vary the brightness, saturation, and hue</td> 760 </tr> 761 762 <tr> 763 <td><a href="command-line-options.php#monitor">-monitor</a></td> 764 <td>monitor progress</td> 765 </tr> 766 767 <tr> 768 <td><a href="command-line-options.php#monochrome">-monochrome</a></td> 769 <td>transform image to black and white</td> 770 </tr> 771 772 <tr> 773 <td><a href="command-line-options.php#morph">-morph <var>value</var></a></td> 774 <td>morph an image sequence</td> 775 </tr> 776 777 <tr> 778 <td><a href="command-line-options.php#morphology">-morphology <var>method</var></a> <var>kernel</var></td> 779 <td>apply a morphology method to the image</td> 780 </tr> 781 782 <tr> 783 <td><a href="command-line-options.php#motion-blur">-motion-blur <var>geometry</var></a></td> 784 <td>simulate motion blur</td> 785 </tr> 786 787 <tr> 788 <td><a href="command-line-options.php#negate">-negate</a></td> 789 <td>replace each pixel with its complementary color </td> 790 </tr> 791 792 <tr> 793 <td><a href="command-line-options.php#noise">-noise <var>radius</var></a></td> 794 <td>add or reduce noise in an image</td> 795 </tr> 796 797 <tr> 798 <td><a href="command-line-options.php#normalize">-normalize</a></td> 799 <td>transform image to span the full range of colors</td> 800 </tr> 801 802 <tr> 803 <td><a href="command-line-options.php#opaque">-opaque <var>color</var></a></td> 804 <td>change this color to the fill color</td> 805 </tr> 806 807 <tr> 808 <td><a href="command-line-options.php#ordered-dither">-ordered-dither <var>NxN</var></a></td> 809 <td>ordered dither the image</td> 810 </tr> 811 812 <tr> 813 <td><a href="command-line-options.php#orient">-orient <var>type</var></a></td> 814 <td>image orientation</td> 815 </tr> 816 817 <tr> 818 <td><a href="command-line-options.php#page">-page <var>geometry</var></a></td> 819 <td>size and location of an image canvas (setting)</td> 820 </tr> 821 822 <tr> 823 <td><a href="command-line-options.php#paint">-paint <var>radius</var></a></td> 824 <td>simulate an oil painting</td> 825 </tr> 826 827 <tr> 828 <td><a href="command-line-options.php#perceptible">-perceptible</a></td> 829 <td>set each pixel whose value is less than |<var>epsilon</var>| to <var>-epsilon</var> or <var>epsilon</var> (whichever is closer) otherwise the pixel value remains unchanged.</td> 830 </tr> 831 832 <tr> 833 <td><a href="command-line-options.php#ping">-ping</a></td> 834 <td>efficiently determine image attributes</td> 835 </tr> 836 837 <tr> 838 <td><a href="command-line-options.php#pointsize">-pointsize <var>value</var></a></td> 839 <td>font point size</td> 840 </tr> 841 842 <tr> 843 <td><a href="command-line-options.php#polaroid">-polaroid <var>angle</var></a></td> 844 <td>simulate a Polaroid picture</td> 845 </tr> 846 847 <tr> 848 <td><a href="command-line-options.php#poly">-poly <var>terms</var></a></td> 849 <td>build a polynomial from the image sequence and the corresponding terms (coefficients and degree pairs).</td> 850 </tr> 851 852 <tr> 853 <td><a href="command-line-options.php#posterize">-posterize <var>levels</var></a></td> 854 <td>reduce the image to a limited number of color levels</td> 855 </tr> 856 857 <tr> 858 <td><a href="command-line-options.php#precision">-precision <var>value</var></a></td> 859 <td>set the maximum number of significant digits to be printed</td> 860 </tr> 861 862 <tr> 863 <td><a href="command-line-options.php#preview">-preview <var>type</var></a></td> 864 <td>image preview type</td> 865 </tr> 866 867 <tr> 868 <td><a href="command-line-options.php#print">-print <var>string</var></a></td> 869 <td>interpret string and print to console</td> 870 </tr> 871 872 <tr> 873 <td><a href="command-line-options.php#process">-process <var>image-filter</var></a></td> 874 <td>process the image with a custom image filter</td> 875 </tr> 876 877 <tr> 878 <td><a href="command-line-options.php#profile">-profile <var>filename</var></a></td> 879 <td>add, delete, or apply an image profile</td> 880 </tr> 881 882 <tr> 883 <td><a href="command-line-options.php#quality">-quality <var>value</var></a></td> 884 <td>JPEG/MIFF/PNG compression level</td> 885 </tr> 886 887 <tr> 888 <td><a href="command-line-options.php#quantize">-quantize <var>colorspace</var></a></td> 889 <td>reduce image colors in this colorspace</td> 890 </tr> 891 892 <tr> 893 <td><a href="command-line-options.php#quiet">-quiet</a></td> 894 <td>suppress all warning messages</td> 895 </tr> 896 897 <tr> 898 <td><a href="command-line-options.php#radial-blur">-radial-blur <var>angle</var></a></td> 899 <td>radial blur the image</td> 900 </tr> 901 902 <tr> 903 <td><a href="command-line-options.php#raise">-raise <var>value</var></a></td> 904 <td>lighten/darken image edges to create a 3-D effect</td> 905 </tr> 906 907 <tr> 908 <td><a href="command-line-options.php#random-threshold">-random-threshold <var>low,high</var></a></td> 909 <td>random threshold the image</td> 910 </tr> 911 912 <tr> 913 <td><a href="command-line-options.php#red-primary">-red-primary <var>point</var></a></td> 914 <td>chromaticity red primary point</td> 915 </tr> 916 917 <tr> 918 <td><a href="command-line-options.php#regard-warnings">-regard-warnings</a></td> 919 <td>pay attention to warning messages.</td> 920 </tr> 921 922 <tr> 923 <td><a href="command-line-options.php#region">-region <var>geometry</var></a></td> 924 <td>apply options to a portion of the image</td> 925 </tr> 926 927 <tr> 928 <td><a href="command-line-options.php#remap">-remap <var>filename</var></a></td> 929 <td>transform image colors to match this set of colors</td> 930 </tr> 931 932 <tr> 933 <td><a href="command-line-options.php#render">-render</a></td> 934 <td>render vector graphics</td> 935 </tr> 936 937 <tr> 938 <td><a href="command-line-options.php#repage">-repage <var>geometry</var></a></td> 939 <td>size and location of an image canvas</td> 940 </tr> 941 942 <tr> 943 <td><a href="command-line-options.php#resample">-resample <var>geometry</var></a></td> 944 <td>change the resolution of an image</td> 945 </tr> 946 947 <tr> 948 <td><a href="command-line-options.php#resize">-resize <var>geometry</var></a></td> 949 <td>resize the image</td> 950 </tr> 951 952 <tr> 953 <td><a href="command-line-options.php#respect-parentheses">-respect-parentheses</a></td> 954 <td>settings remain in effect until parenthesis boundary.</td> 955 </tr> 956 957 <tr> 958 <td><a href="command-line-options.php#roll">-roll <var>geometry</var></a></td> 959 <td>roll an image vertically or horizontally</td> 960 </tr> 961 962 <tr> 963 <td><a href="command-line-options.php#rotate">-rotate <var>degrees</var></a></td> 964 <td>apply Paeth rotation to the image</td> 965 </tr> 966 967 <tr> 968 <td><a href="command-line-options.php#sample">-sample <var>geometry</var></a></td> 969 <td>scale image with pixel sampling</td> 970 </tr> 971 972 <tr> 973 <td><a href="command-line-options.php#sampling-factor">-sampling-factor <var>geometry</var></a></td> 974 <td>horizontal and vertical sampling factor</td> 975 </tr> 976 977 <tr> 978 <td><a href="command-line-options.php#scale">-scale <var>geometry</var></a></td> 979 <td>scale the image</td> 980 </tr> 981 982 <tr> 983 <td><a href="command-line-options.php#scene">-scene <var>value</var></a></td> 984 <td>image scene number</td> 985 </tr> 986 987 <tr> 988 <td><a href="command-line-options.php#seed">-seed <var>value</var></a></td> 989 <td>seed a new sequence of pseudo-random numbers</td> 990 </tr> 991 992 <tr> 993 <td><a href="command-line-options.php#segment">-segment <var>values</var></a></td> 994 <td>segment an image</td> 995 </tr> 996 997 <tr> 998 <td><a href="command-line-options.php#threshold">-selective-blur <var>geometry</var></a></td> 999 <td>selectively blur pixels within a contrast threshold</td> 1000 </tr> 1001 1002 <tr> 1003 <td><a href="command-line-options.php#separate">-separate</a></td> 1004 <td>separate an image channel into a grayscale image</td> 1005 </tr> 1006 1007 <tr> 1008 <td><a href="command-line-options.php#sepia-tone">-sepia-tone <var>threshold</var></a></td> 1009 <td>simulate a sepia-toned photo</td> 1010 </tr> 1011 1012 <tr> 1013 <td><a href="command-line-options.php#set">-set <var>attribute value</var></a></td> 1014 <td>set an image attribute</td> 1015 </tr> 1016 1017 <tr> 1018 <td><a href="command-line-options.php#shade">-shade <var>degrees</var></a></td> 1019 <td>shade the image using a distant light source</td> 1020 </tr> 1021 1022 <tr> 1023 <td><a href="command-line-options.php#shadow">-shadow <var>geometry</var></a></td> 1024 <td>simulate an image shadow</td> 1025 </tr> 1026 1027 <tr> 1028 <td><a href="command-line-options.php#sharpen">-sharpen <var>geometry</var></a></td> 1029 <td>sharpen the image</td> 1030 </tr> 1031 1032 <tr> 1033 <td><a href="command-line-options.php#shave">-shave <var>geometry</var></a></td> 1034 <td>shave pixels from the image edges</td> 1035 </tr> 1036 1037 <tr> 1038 <td><a href="command-line-options.php#shear">-shear <var>geometry</var></a></td> 1039 <td>slide one edge of the image along the X or Y axis</td> 1040 </tr> 1041 1042 <tr> 1043 <td><a href="command-line-options.php#sigmoidal">-sigmoidal-contrast <var>geometry</var></a></td> 1044 <td>increase the contrast without saturating highlights or shadows</td> 1045 </tr> 1046 1047 <tr> 1048 <td><a href="command-line-options.php#size">-size <var>geometry</var></a></td> 1049 <td>width and height of image</td> 1050 </tr> 1051 1052 <tr> 1053 <td><a href="command-line-options.php#sketch">-sketch <var>geometry</var></a></td> 1054 <td>simulate a pencil sketch</td> 1055 </tr> 1056 1057 <tr> 1058 <td><a href="command-line-options.php#smush">-smush <var>offset</var></a></td> 1059 <td>smush an image sequence together</td> 1060 </tr> 1061 1062 <tr> 1063 <td><a href="command-line-options.php#solarize">-solarize <var>threshold</var></a></td> 1064 <td>negate all pixels above the threshold level</td> 1065 </tr> 1066 1067 <tr> 1068 <td><a href="command-line-options.php#splice">-splice <var>geometry</var></a></td> 1069 <td>splice the background color into the image</td> 1070 </tr> 1071 1072 <tr> 1073 <td><a href="command-line-options.php#spread">-spread <var>radius</var></a></td> 1074 <td>displace image pixels by a random amount</td> 1075 </tr> 1076 1077 <tr> 1078 <td><a href="command-line-options.php#statistic">-statistic <var>type</var> <var>geometry</var></a></td> 1079 <td>replace each pixel with corresponding statistic from the neighborhood</td> 1080 </tr> 1081 1082 <tr> 1083 <td><a href="command-line-options.php#strip">-strip</a></td> 1084 <td>strip image of all profiles and comments</td> 1085 </tr> 1086 1087 <tr> 1088 <td><a href="command-line-options.php#stroke">-stroke <var>color</var></a></td> 1089 <td>graphic primitive stroke color</td> 1090 </tr> 1091 1092 <tr> 1093 <td><a href="command-line-options.php#strokewidth">-strokewidth <var>value</var></a></td> 1094 <td>graphic primitive stroke width</td> 1095 </tr> 1096 1097 <tr> 1098 <td><a href="command-line-options.php#stretch">-stretch <var>type</var></a></td> 1099 <td>render text with this font stretch</td> 1100 </tr> 1101 1102 <tr> 1103 <td><a href="command-line-options.php#style">-style <var>type</var></a></td> 1104 <td>render text with this font style</td> 1105 </tr> 1106 1107 <tr> 1108 <td><a href="command-line-options.php#swap">-swap <var>indexes</var></a></td> 1109 <td>swap two images in the image sequence</td> 1110 </tr> 1111 1112 <tr> 1113 <td><a href="command-line-options.php#swirl">-swirl <var>degrees</var></a></td> 1114 <td>swirl image pixels about the center</td> 1115 </tr> 1116 1117 <tr> 1118 <td><a href="command-line-options.php#synchronize">-synchronize</a></td> 1119 <td>synchronize image to storage device</td> 1120 </tr> 1121 1122 <tr> 1123 <td><a href="command-line-options.php#texture">-texture <var>filename</var></a></td> 1124 <td>name of texture to tile onto the image background</td> 1125 </tr> 1126 1127 <tr> 1128 <td><a href="command-line-options.php#threshold">-threshold <var>value</var></a></td> 1129 <td>threshold the image</td> 1130 </tr> 1131 1132 <tr> 1133 <td><a href="command-line-options.php#thumbnail">-thumbnail <var>geometry</var></a></td> 1134 <td>create a thumbnail of the image</td> 1135 </tr> 1136 1137 <tr> 1138 <td><a href="command-line-options.php#tile">-tile <var>filename</var></a></td> 1139 <td>tile image when filling a graphic primitive</td> 1140 </tr> 1141 1142 <tr> 1143 <td><a href="command-line-options.php#tile-offset">-tile-offset <var>geometry</var></a></td> 1144 <td>set the image tile offset</td> 1145 </tr> 1146 1147 <tr> 1148 <td><a href="command-line-options.php#tint">-tint <var>value</var></a></td> 1149 <td>tint the image with the fill color</td> 1150 </tr> 1151 1152 <tr> 1153 <td><a href="command-line-options.php#transform">-transform</a></td> 1154 <td>affine transform image</td> 1155 </tr> 1156 1157 <tr> 1158 <td><a href="command-line-options.php#transparent">-transparent <var>color</var></a></td> 1159 <td>make this color transparent within the image</td> 1160 </tr> 1161 1162 <tr> 1163 <td><a href="command-line-options.php#transparent-color">-transparent-color <var>color</var></a></td> 1164 <td>transparent color</td> 1165 </tr> 1166 1167 <tr> 1168 <td><a href="command-line-options.php#transpose">-transpose</a></td> 1169 <td>flip image in the vertical direction and rotate 90 degrees</td> 1170 </tr> 1171 1172 <tr> 1173 <td><a href="command-line-options.php#transverse">-transverse</a></td> 1174 <td>flop image in the horizontal direction and rotate 270 degrees</td> 1175 </tr> 1176 1177 <tr> 1178 <td><a href="command-line-options.php#treedepth">-treedepth <var>value</var></a></td> 1179 <td>color tree depth</td> 1180 </tr> 1181 1182 <tr> 1183 <td><a href="command-line-options.php#trim">-trim</a></td> 1184 <td>trim image edges</td> 1185 </tr> 1186 1187 <tr> 1188 <td><a href="command-line-options.php#type">-type <var>type</var></a></td> 1189 <td>image type</td> 1190 </tr> 1191 1192 <tr> 1193 <td><a href="command-line-options.php#undercolor">-undercolor <var>color</var></a></td> 1194 <td>annotation bounding box color</td> 1195 </tr> 1196 1197 <tr> 1198 <td><a href="command-line-options.php#unique-colors">-unique-colors</a></td> 1199 <td>discard all but one of any pixel color.</td> 1200 </tr> 1201 1202 <tr> 1203 <td><a href="command-line-options.php#units">-units <var>type</var></a></td> 1204 <td>the units of image resolution</td> 1205 </tr> 1206 1207 <tr> 1208 <td><a href="command-line-options.php#unsharp">-unsharp <var>geometry</var></a></td> 1209 <td>sharpen the image</td> 1210 </tr> 1211 1212 <tr> 1213 <td><a href="command-line-options.php#verbose">-verbose</a></td> 1214 <td>print detailed information about the image</td> 1215 </tr> 1216 1217 <tr> 1218 <td><a href="command-line-options.php#version">-version</a></td> 1219 <td>print version information</td> 1220 </tr> 1221 1222 <tr> 1223 <td><a href="command-line-options.php#view">-view</a></td> 1224 <td>FlashPix viewing transforms</td> 1225 </tr> 1226 1227 <tr> 1228 <td><a href="command-line-options.php#vignette">-vignette <var>geometry</var></a></td> 1229 <td>soften the edges of the image in vignette style</td> 1230 </tr> 1231 1232 <tr> 1233 <td><a href="command-line-options.php#virtual-pixel">-virtual-pixel <var>method</var></a></td> 1234 <td>access method for pixels outside the boundaries of the image</td> 1235 </tr> 1236 1237 <tr> 1238 <td><a href="command-line-options.php#wave">-wave <var>geometry</var></a></td> 1239 <td>alter an image along a sine wave</td> 1240 </tr> 1241 1242 <tr> 1243 <td><a href="command-line-options.php#weight">-weight <var>type</var></a></td> 1244 <td>render text with this font weight</td> 1245 </tr> 1246 1247 <tr> 1248 <td><a href="command-line-options.php#white-point">-white-point <var>point</var></a></td> 1249 <td>chromaticity white point</td> 1250 </tr> 1251 1252 <tr> 1253 <td><a href="command-line-options.php#white-threshold">-white-threshold <var>value</var></a></td> 1254 <td>force all pixels above the threshold into white</td> 1255 </tr> 1256 1257 <tr> 1258 <td><a href="command-line-options.php#write">-write <var>filename</var></a></td> 1259 <td>write images to this file</td> 1260 </tr> 1261 1262 </tbody> 1263</table> 1264 1265</div> 1266 <footer class="magick-footer"> 1267 <p><a href="support.php">Donate</a> • 1268 <a href="sitemap.php">Sitemap</a> • 1269 <a href="links.php">Related</a> • 1270 <a href="architecture.php">Architecture</a> 1271</p> 1272 <p><a href="mogrify.php#">Back to top</a> • 1273 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 1274 <a href="contact.php">Contact Us</a></p> 1275 <p><small>© 1999-2016 ImageMagick Studio LLC</small></p> 1276 </footer> 1277</div><!-- /.container --> 1278 1279 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 1280 <script src="http://nextgen.imagemagick.org/js/magick.php"></script> 1281</div> 1282</body> 1283</html> 1284