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: Display</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 Bzier 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:, display, 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="display.php#usage">Example Usage</a> <a href="display.php#options">Option Summary</a></p> 56 57 <p class="lead magick-description">Use the <code>display</code> program to display an image or image sequence on any X server. See <a href="command-line-processing.php">Command Line Processing</a> for advice on how to structure your <code>display</code> command or see below for example 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>display</code> command here to illustrate its usefulness and ease of use. To get started, lets display an image in the JPEG format:</p> 62 63 <pre> 64 display rose.jpg 65 </pre> 66 67 <p>To tile a slate texture onto the root window, use:</p> 68 69 <pre> 70 display -size 1280x1024 -window root slate.png 71 </pre> 72 73 <p>To display a visual image directory of all your JPEG images, use:</p> 74 75 <pre> 76 display 'vid:*.jpg' 77 </pre> 78 79 <p>The display program defaults to the X screen resolution. To display vecotr formats at their intended size, override the default resolution:</p> 80 81 <pre> 82 display -density 72 drawing.svg 83 </pre> 84 85 <p>You can find additional examples of using <code>display</code> in <a href="http://www.ibm.com/developerworks/library/l-graf/">Graphics from the Command Line</a>. Further discussion is available in <a href="https://www.ibm.com/developerworks/library/l-graf2/">More Graphics from the Command Line</a> and <a href="http://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p> 86 87 88 <h2 class="magick-header"><a id="options"></a>Option Summary</h2> 89 90 <p>The <code>display</code> command recognizes these options. Click on an option to get more details about how that option works.</p> 91 92 <table class="table table-condensed table-striped"> 93 <tbody> 94 <tr> 95 <th align="left">Option</th> 96 <th align="left">Description</th> 97 </tr> 98 99 <tr> 100 <td><a href="command-line-options.php#alpha">-alpha</a></td> 101 <td>on, activate, off, deactivate, set, opaque, copy", 102 transparent, extract, background, or shape the alpha channel</td> 103 </tr> 104 105 <tr> 106 <td><a href="command-line-options.php#antialias">-antialias</a></td> 107 <td>remove pixel-aliasing</td> 108 </tr> 109 110 <tr> 111 <td><a href="command-line-options.php#authenticate">-authenticate <var>value</var></a></td> 112 <td>decrypt image with this password</td> 113 </tr> 114 115 <tr> 116 <td><a href="command-line-options.php#backdrop">-backdrop</a></td> 117 <td>display image centered on a backdrop</td> 118 </tr> 119 120 <tr> 121 <td><a href="command-line-options.php#background">-background <var>color</var></a></td> 122 <td>background color</td> 123 </tr> 124 125 <tr> 126 <td><a href="command-line-options.php#border">-border <var>geometry</var></a></td> 127 <td>surround image with a border of color</td> 128 </tr> 129 130 <tr> 131 <td><a href="command-line-options.php#bordercolor">-bordercolor <var>color</var></a></td> 132 <td>border color</td> 133 </tr> 134 135 <tr> 136 <td><a href="command-line-options.php#channel">-channel <var>type</var></a></td> 137 <td>apply option to select image channels</td> 138 </tr> 139 140 <tr> 141 <td><a href="command-line-options.php#clip">-clip</a></td> 142 <td>clip along the first path from the 8BIM profile</td> 143 </tr> 144 145 <tr> 146 <td><a href="command-line-options.php#clip-path">-clip-path <var>id</var></a></td> 147 <td>clip along a named path from the 8BIM profile</td> 148 </tr> 149 150 <tr> 151 <td><a href="command-line-options.php#coalesce">-coalesce</a></td> 152 <td>merge a sequence of images</td> 153 </tr> 154 155 <tr> 156 <td><a href="command-line-options.php#colormap">-colormap <var>type</var></a></td> 157 <td>Shared or Private</td> 158 </tr> 159 160 <tr> 161 <td><a href="command-line-options.php#colors">-colors <var>value</var></a></td> 162 <td>preferred number of colors in the image</td> 163 </tr> 164 165 <tr> 166 <td><a href="command-line-options.php#colorspace">-colorspace <var>type</var></a></td> 167 <td>set image colorspace</td> 168 </tr> 169 170 <tr> 171 <td><a href="command-line-options.php#comment">-comment <var>string</var></a></td> 172 <td>annotate image with comment</td> 173 </tr> 174 175 <tr> 176 <td><a href="command-line-options.php#compress">-compress <var>type</var></a></td> 177 <td>image compression type</td> 178 </tr> 179 180 <tr> 181 <td><a href="command-line-options.php#contrast">-contrast</a></td> 182 <td>enhance or reduce the image contrast</td> 183 </tr> 184 185 <tr> 186 <td><a href="command-line-options.php#crop">-crop <var>geometry</var></a></td> 187 <td>preferred size and location of the cropped image</td> 188 </tr> 189 190 <tr> 191 <td><a href="command-line-options.php#debug">-debug <var>events</var></a></td> 192 <td>display copious debugging information</td> 193 </tr> 194 195 <tr> 196 <td><a href="command-line-options.php#decipher">-decipher <var>filename</var></a></td> 197 <td>convert cipher pixels to plain</td> 198 </tr> 199 200 <tr> 201 <td><a href="command-line-options.php#define">-define <var>format:option</var></a></td> 202 <td>define one or more image format options</td> 203 </tr> 204 205 <tr> 206 <td><a href="command-line-options.php#delay">-delay <var>value</var></a></td> 207 <td>display the next image after pausing</td> 208 </tr> 209 210 <tr> 211 <td><a href="command-line-options.php#density">-density <var>geometry</var></a></td> 212 <td>horizontal and vertical density of the image</td> 213 </tr> 214 215 <tr> 216 <td><a href="command-line-options.php#depth">-depth <var>value</var></a></td> 217 <td>image depth</td> 218 </tr> 219 220 <tr> 221 <td><a href="command-line-options.php#despeckle">-despeckle</a></td> 222 <td>reduce the speckles within an image</td> 223 </tr> 224 225 <tr> 226 <td><a href="command-line-options.php#display">-display <var>server</var></a></td> 227 <td>get image or font from this X server</td> 228 </tr> 229 230 <tr> 231 <td><a href="command-line-options.php#dispose">-dispose <var>method</var></a></td> 232 <td>layer disposal method</td> 233 </tr> 234 235 <tr> 236 <td><a href="command-line-options.php#dither">-dither <var>method</var></a></td> 237 <td>apply error diffusion to image</td> 238 </tr> 239 240 <tr> 241 <td><a href="command-line-options.php#edge">-edge <var>radius</var></a></td> 242 <td>apply a filter to detect edges in the image</td> 243 </tr> 244 245 <tr> 246 <td><a href="command-line-options.php#endian">-endian <var>type</var></a></td> 247 <td>endianness (MSB or LSB) of the image</td> 248 </tr> 249 250 <tr> 251 <td><a href="command-line-options.php#enhance">-enhance</a></td> 252 <td>apply a digital filter to enhance a noisy image</td> 253 </tr> 254 255 <tr> 256 <td><a href="command-line-options.php#equalize">-equalize</a></td> 257 <td>perform histogram equalization to an image</td> 258 </tr> 259 260 <tr> 261 <td><a href="command-line-options.php#extract">-extract <var>geometry</var></a></td> 262 <td>extract area from image</td> 263 </tr> 264 265 <tr> 266 <td><a href="command-line-options.php#filter">-filter <var>type</var></a></td> 267 <td>use this filter when resizing an image</td> 268 </tr> 269 270 <tr> 271 <td><a href="command-line-options.php#flatten">-flatten</a></td> 272 <td>flatten a sequence of images</td> 273 </tr> 274 275 <tr> 276 <td><a href="command-line-options.php#flip">-flip</a></td> 277 <td>flip image in the vertical direction</td> 278 </tr> 279 280 <tr> 281 <td><a href="command-line-options.php#flop">-flop</a></td> 282 <td>flop image in the horizontal direction</td> 283 </tr> 284 285 <tr> 286 <td><a href="command-line-options.php#frame">-frame <var>geometry</var></a></td> 287 <td>surround image with an ornamental border</td> 288 </tr> 289 290 <tr> 291 <td><a href="command-line-options.php#fuzz">-fuzz <var>distance</var></a></td> 292 <td>colors within this distance are considered equal</td> 293 </tr> 294 295 <tr> 296 <td><a href="command-line-options.php#gamma">-gamma <var>value</var></a></td> 297 <td>level of gamma correction</td> 298 </tr> 299 300 <tr> 301 <td><a href="command-line-options.php#geometry">-geometry <var>geometry</var></a></td> 302 <td>preferred size or location of the image</td> 303 </tr> 304 305 <tr> 306 <td><a href="command-line-options.php#gravity">-gravity <var>geometry</var></a></td> 307 <td>horizontal and vertical backdrop placement</td> 308 </tr> 309 310 <tr> 311 <td><a href="command-line-options.php#help">-help</a></td> 312 <td>print program options</td> 313 </tr> 314 315 <tr> 316 <td><a href="command-line-options.php#identify">-identify</a></td> 317 <td>identify the format and characteristics of the image</td> 318 </tr> 319 320 <tr> 321 <td><a href="command-line-options.php#immutable">-immutable <var>type</var></a></td> 322 <td>prohibit image edits</td> 323 </tr> 324 325 <tr> 326 <td><a href="command-line-options.php#interlace">-interlace <var>type</var></a></td> 327 <td>type of image interlacing scheme</td> 328 </tr> 329 330 <tr> 331 <td><a href="command-line-options.php#interpolate">-interpolate <var>method</var></a></td> 332 <td>pixel color interpolation method</td> 333 </tr> 334 335 <tr> 336 <td><a href="command-line-options.php#label">-label <var>name</var></a></td> 337 <td>assign a label to an image</td> 338 </tr> 339 340 <tr> 341 <td><a href="command-line-options.php#limit">-limit <var>type value</var></a></td> 342 <td>pixel cache resource limit</td> 343 </tr> 344 345 <tr> 346 <td><a href="command-line-options.php#log">-log <var>format</var></a></td> 347 <td>format of debugging information</td> 348 </tr> 349 350 <tr> 351 <td><a href="command-line-options.php#map">-map <var>filename</var></a></td> 352 <td>transform image colors to match this set of colors</td> 353 </tr> 354 355 <tr> 356 <td><a href="command-line-options.php#mattecolor">-mattecolor <var>color</var></a></td> 357 <td>frame color</td> 358 </tr> 359 360 <tr> 361 <td><a href="command-line-options.php#monitor">-monitor</a></td> 362 <td>monitor progress</td> 363 </tr> 364 365 <tr> 366 <td><a href="command-line-options.php#monochrome">-monochrome</a></td> 367 <td>transform image to black and white</td> 368 </tr> 369 370 <tr> 371 <td><a href="command-line-options.php#negate">-negate</a></td> 372 <td>replace each pixel with its complementary color </td> 373 </tr> 374 375 <tr> 376 <td><a href="command-line-options.php#normalize">-normalize</a></td> 377 <td>transform image to span the full range of colors</td> 378 </tr> 379 380 <tr> 381 <td><a href="command-line-options.php#page">-page <var>geometry</var></a></td> 382 <td>size and location of an image canvas (setting)</td> 383 </tr> 384 385 <tr> 386 <td><a href="command-line-options.php#profile">-profile <var>filename</var></a></td> 387 <td>add, delete, or apply an image profile</td> 388 </tr> 389 390 <tr> 391 <td><a href="command-line-options.php#quantize">-quantize <var>colorspace</var></a></td> 392 <td>reduce image colors in this colorspace</td> 393 </tr> 394 395 <tr> 396 <td><a href="command-line-options.php#quiet">-quiet</a></td> 397 <td>suppress all warning messages</td> 398 </tr> 399 400 <tr> 401 <td><a href="command-line-options.php#raise">-raise <var>value</var></a></td> 402 <td>lighten/darken image edges to create a 3-D effect</td> 403 </tr> 404 405 <tr> 406 <td><a href="command-line-options.php#regard-warnings">-regard-warnings</a></td> 407 <td>pay attention to warning messages.</td> 408 </tr> 409 410 <tr> 411 <td><a href="command-line-options.php#remote">-remote <var>command</var></a></td> 412 <td>execute a command in an remote display process</td> 413 </tr> 414 415 <tr> 416 <td><a href="command-line-options.php#resample">-resample <var>geometry</var></a></td> 417 <td>change the resolution of an image</td> 418 </tr> 419 420 <tr> 421 <td><a href="command-line-options.php#resize">-resize <var>geometry</var></a></td> 422 <td>resize the image</td> 423 </tr> 424 425 <tr> 426 <td><a href="command-line-options.php#respect-parentheses">-respect-parentheses</a></td> 427 <td>settings remain in effect until parenthesis boundary.</td> 428 </tr> 429 430 <tr> 431 <td><a href="command-line-options.php#roll">-roll <var>geometry</var></a></td> 432 <td>roll an image vertically or horizontally</td> 433 </tr> 434 435 <tr> 436 <td><a href="command-line-options.php#rotate">-rotate <var>degrees</var></a></td> 437 <td>apply Paeth rotation to the image</td> 438 </tr> 439 440 <tr> 441 <td><a href="command-line-options.php#sample">-sample <var>geometry</var></a></td> 442 <td>scale image with pixel sampling</td> 443 </tr> 444 445 <tr> 446 <td><a href="command-line-options.php#sampling-factor">-sampling-factor <var>geometry</var></a></td> 447 <td>horizontal and vertical sampling factor</td> 448 </tr> 449 450 <tr> 451 <td><a href="command-line-options.php#scene">-scene <var>value</var></a></td> 452 <td>image scene number</td> 453 </tr> 454 455 <tr> 456 <td><a href="command-line-options.php#seed">-seed <var>value</var></a></td> 457 <td>seed a new sequence of pseudo-random numbers</td> 458 </tr> 459 460 <tr> 461 <td><a href="command-line-options.php#segment">-segment <var>values</var></a></td> 462 <td>segment an image</td> 463 </tr> 464 465 <tr> 466 <td><a href="command-line-options.php#set">-set <var>attribute value</var></a></td> 467 <td>set an image attribute</td> 468 </tr> 469 470 <tr> 471 <td><a href="command-line-options.php#sharpen">-sharpen <var>geometry</var></a></td> 472 <td>sharpen the image</td> 473 </tr> 474 475 <tr> 476 <td><a href="command-line-options.php#size">-size <var>geometry</var></a></td> 477 <td>width and height of image</td> 478 </tr> 479 480 <tr> 481 <td><a href="command-line-options.php#strip">-strip</a></td> 482 <td>strip image of all profiles and comments</td> 483 </tr> 484 485 <tr> 486 <td><a href="command-line-options.php#thumbnail">-thumbnail <var>geometry</var></a></td> 487 <td>create a thumbnail of the image</td> 488 </tr> 489 490 <tr> 491 <td><a href="command-line-options.php#transparent-color">-transparent-color <var>color</var></a></td> 492 <td>transparent color</td> 493 </tr> 494 495 <tr> 496 <td><a href="command-line-options.php#black-threshold">-black-threshold <var>value</var></a></td> 497 <td>force all pixels below the threshold into black</td> 498 </tr> 499 500 <tr> 501 <td><a href="command-line-options.php#trim">-trim</a></td> 502 <td>trim image edges</td> 503 </tr> 504 505 <tr> 506 <td><a href="command-line-options.php#update">-update <var>seconds</var></a></td> 507 <td>detect when image file is modified and redisplay</td> 508 </tr> 509 510 <tr> 511 <td><a href="command-line-options.php#verbose">-verbose</a></td> 512 <td>print detailed information about the image</td> 513 </tr> 514 515 <tr> 516 <td><a href="command-line-options.php#version">-version</a></td> 517 <td>print version information</td> 518 </tr> 519 520 <tr> 521 <td><a href="command-line-options.php#virtual-pixel">-virtual-pixel <var>method</var></a></td> 522 <td>access method for pixels outside the boundaries of the image</td> 523 </tr> 524 525 <tr> 526 <td><a href="command-line-options.php#visual">-visual</a></td> 527 <td>display image using this visual type</td> 528 </tr> 529 530 <tr> 531 <td><a href="command-line-options.php#write">-window <var>id</var></a></td> 532 <td>display image to background of this window</td> 533 </tr> 534 535 <tr> 536 <td><a href="command-line-options.php#write">-window-group <var>id</var></a></td> 537 <td>exit program when this window id is destroyed</td> 538 </tr> 539 540 <tr> 541 <td><a href="command-line-options.php#write">-write <var>filename</var></a></td> 542 <td>write images to this file</td> 543 </tr> 544 </tbody> 545 </table> 546 547 </div> 548 <footer class="magick-footer"> 549 <p><a href="support.php">Donate</a> 550 <a href="sitemap.php">Sitemap</a> 551 <a href="links.php">Related</a> 552 <a href="architecture.php">Architecture</a> 553 </p> 554 <p><a href="display.php#">Back to top</a> 555 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> 556 <a href="contact.php">Contact Us</a></p> 557 <p><small> 1999-2016 ImageMagick Studio LLC</small></p> 558 </footer> 559 </div><!-- /.container --> 560 561 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 562 <script src="http://nextgen.imagemagick.org/js/magick.php"></script> 563 </div> 564 </body> 565 </html> 566