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