5 <title>ImageMagick: Command-line Tools: Display</title>
6 <meta http-equiv="content-type" content="text/html; charset=utf-8">
7 <meta name="application-name" content="ImageMagick">
8 <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.">
9 <meta name="application-url" content="http://www.imagemagick.org">
10 <meta name="generator" content="PHP">
11 <meta name="keywords" content="command-line, tools:, display, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert">
12 <meta name="rating" content="GENERAL">
13 <meta name="robots" content="INDEX, FOLLOW">
14 <meta name="generator" content="ImageMagick Studio LLC">
15 <meta name="author" content="ImageMagick Studio LLC">
16 <meta name="revisit-after" content="2 DAYS">
17 <meta name="resource-type" content="document">
18 <meta name="copyright" content="Copyright (c) 1999-2015 ImageMagick Studio LLC">
19 <meta name="distribution" content="Global">
20 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1">
21 <link rel="icon" href="../images/wand.png">
22 <link rel="shortcut icon" href="../images/wand.ico">
23 <link rel="stylesheet" href="../css/magick.html">
27 <div class="magick-masthead">
28 <div class="container">
29 <script async src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3129977114552745" data-ad-slot="6345125851" data-ad-format="auto"></ins>
31 (adsbygoogle = window.adsbygoogle || []).push({});
33 <nav class="magick-nav">
34 <a class="magick-nav-item " href="../index.html">Home</a>
35 <a class="magick-nav-item " href="binary-releases.html">Download</a>
36 <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
37 <a class="magick-nav-item " href="command-line-options.html">Options</a>
38 <a class="magick-nav-item " href="resources.html">Resources</a>
39 <a class="magick-nav-item " href="api.html">Develop</a>
40 <a class="magick-nav-item " href="http://nextgen.imagemagick.org/script/search.php">Search</a>
41 <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
45 <div class="container">
46 <div class="magick-header">
47 <p class="text-center"><a href="display.html#usage">Example Usage</a> • <a href="display.html#options">Option Summary</a></p>
49 <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>
51 <h2 class="magick-header"><a id="usage"></a>Example Usage</h2>
53 <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>
59 <p>To tile a slate texture onto the root window, use:</p>
62 display -size 1280x1024 -window root slate.png
65 <p>To display a visual image directory of all your JPEG images, use:</p>
71 <p>The display program defaults to the X screen resolution. To display vecotr formats at their intended size, override the default resolution:</p>
74 display -density 72 drawing.svg
77 <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>
80 <h2 class="magick-header"><a id="options"></a>Option Summary</h2>
82 <p>The <code>display</code> command recognizes these options. Click on an option to get more details about how that option works.</p>
84 <table class="table table-condensed table-striped">
87 <th align="left">Option</th>
88 <th align="left">Description</th>
92 <td><a href="command-line-options.html#alpha">-alpha</a></td>
93 <td>on, activate, off, deactivate, set, opaque, copy",
94 transparent, extract, background, or shape the alpha channel</td>
98 <td><a href="command-line-options.html#antialias">-antialias</a></td>
99 <td>remove pixel-aliasing</td>
103 <td><a href="command-line-options.html#authenticate">-authenticate <var>value</var></a></td>
104 <td>decrypt image with this password</td>
108 <td><a href="command-line-options.html#backdrop">-backdrop</a></td>
109 <td>display image centered on a backdrop</td>
113 <td><a href="command-line-options.html#background">-background <var>color</var></a></td>
114 <td>background color</td>
118 <td><a href="command-line-options.html#border">-border <var>geometry</var></a></td>
119 <td>surround image with a border of color</td>
123 <td><a href="command-line-options.html#bordercolor">-bordercolor <var>color</var></a></td>
124 <td>border color</td>
128 <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td>
129 <td>apply option to select image channels</td>
133 <td><a href="command-line-options.html#clip">-clip</a></td>
134 <td>clip along the first path from the 8BIM profile</td>
138 <td><a href="command-line-options.html#clip-path">-clip-path <var>id</var></a></td>
139 <td>clip along a named path from the 8BIM profile</td>
143 <td><a href="command-line-options.html#coalesce">-coalesce</a></td>
144 <td>merge a sequence of images</td>
148 <td><a href="command-line-options.html#colormap">-colormap <var>type</var></a></td>
149 <td>Shared or Private</td>
153 <td><a href="command-line-options.html#colors">-colors <var>value</var></a></td>
154 <td>preferred number of colors in the image</td>
158 <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td>
159 <td>set image colorspace</td>
163 <td><a href="command-line-options.html#comment">-comment <var>string</var></a></td>
164 <td>annotate image with comment</td>
168 <td><a href="command-line-options.html#compress">-compress <var>type</var></a></td>
169 <td>image compression type</td>
173 <td><a href="command-line-options.html#contrast">-contrast</a></td>
174 <td>enhance or reduce the image contrast</td>
178 <td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td>
179 <td>preferred size and location of the cropped image</td>
183 <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td>
184 <td>display copious debugging information</td>
188 <td><a href="command-line-options.html#decipher">-decipher <var>filename</var></a></td>
189 <td>convert cipher pixels to plain</td>
193 <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td>
194 <td>define one or more image format options</td>
198 <td><a href="command-line-options.html#delay">-delay <var>value</var></a></td>
199 <td>display the next image after pausing</td>
203 <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td>
204 <td>horizontal and vertical density of the image</td>
208 <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td>
213 <td><a href="command-line-options.html#despeckle">-despeckle</a></td>
214 <td>reduce the speckles within an image</td>
218 <td><a href="command-line-options.html#display">-display <var>server</var></a></td>
219 <td>get image or font from this X server</td>
223 <td><a href="command-line-options.html#dispose">-dispose <var>method</var></a></td>
224 <td>layer disposal method</td>
228 <td><a href="command-line-options.html#dither">-dither <var>method</var></a></td>
229 <td>apply error diffusion to image</td>
233 <td><a href="command-line-options.html#edge">-edge <var>radius</var></a></td>
234 <td>apply a filter to detect edges in the image</td>
238 <td><a href="command-line-options.html#endian">-endian <var>type</var></a></td>
239 <td>endianness (MSB or LSB) of the image</td>
243 <td><a href="command-line-options.html#enhance">-enhance</a></td>
244 <td>apply a digital filter to enhance a noisy image</td>
248 <td><a href="command-line-options.html#equalize">-equalize</a></td>
249 <td>perform histogram equalization to an image</td>
253 <td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td>
254 <td>extract area from image</td>
258 <td><a href="command-line-options.html#filter">-filter <var>type</var></a></td>
259 <td>use this filter when resizing an image</td>
263 <td><a href="command-line-options.html#flatten">-flatten</a></td>
264 <td>flatten a sequence of images</td>
268 <td><a href="command-line-options.html#flip">-flip</a></td>
269 <td>flip image in the vertical direction</td>
273 <td><a href="command-line-options.html#flop">-flop</a></td>
274 <td>flop image in the horizontal direction</td>
278 <td><a href="command-line-options.html#frame">-frame <var>geometry</var></a></td>
279 <td>surround image with an ornamental border</td>
283 <td><a href="command-line-options.html#fuzz">-fuzz <var>distance</var></a></td>
284 <td>colors within this distance are considered equal</td>
288 <td><a href="command-line-options.html#gamma">-gamma <var>value</var></a></td>
289 <td>level of gamma correction</td>
293 <td><a href="command-line-options.html#geometry">-geometry <var>geometry</var></a></td>
294 <td>preferred size or location of the image</td>
298 <td><a href="command-line-options.html#gravity">-gravity <var>geometry</var></a></td>
299 <td>horizontal and vertical backdrop placement</td>
303 <td><a href="command-line-options.html#help">-help</a></td>
304 <td>print program options</td>
308 <td><a href="command-line-options.html#identify">-identify</a></td>
309 <td>identify the format and characteristics of the image</td>
313 <td><a href="command-line-options.html#immutable">-immutable <var>type</var></a></td>
314 <td>prohibit image edits</td>
318 <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td>
319 <td>type of image interlacing scheme</td>
323 <td><a href="command-line-options.html#interpolate">-interpolate <var>method</var></a></td>
324 <td>pixel color interpolation method</td>
328 <td><a href="command-line-options.html#label">-label <var>name</var></a></td>
329 <td>assign a label to an image</td>
333 <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td>
334 <td>pixel cache resource limit</td>
338 <td><a href="command-line-options.html#log">-log <var>format</var></a></td>
339 <td>format of debugging information</td>
343 <td><a href="command-line-options.html#map">-map <var>filename</var></a></td>
344 <td>transform image colors to match this set of colors</td>
348 <td><a href="command-line-options.html#mattecolor">-mattecolor <var>color</var></a></td>
353 <td><a href="command-line-options.html#monitor">-monitor</a></td>
354 <td>monitor progress</td>
358 <td><a href="command-line-options.html#monochrome">-monochrome</a></td>
359 <td>transform image to black and white</td>
363 <td><a href="command-line-options.html#negate">-negate</a></td>
364 <td>replace each pixel with its complementary color </td>
368 <td><a href="command-line-options.html#normalize">-normalize</a></td>
369 <td>transform image to span the full range of colors</td>
373 <td><a href="command-line-options.html#page">-page <var>geometry</var></a></td>
374 <td>size and location of an image canvas (setting)</td>
378 <td><a href="command-line-options.html#profile">-profile <var>filename</var></a></td>
379 <td>add, delete, or apply an image profile</td>
383 <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td>
384 <td>reduce image colors in this colorspace</td>
388 <td><a href="command-line-options.html#quiet">-quiet</a></td>
389 <td>suppress all warning messages</td>
393 <td><a href="command-line-options.html#raise">-raise <var>value</var></a></td>
394 <td>lighten/darken image edges to create a 3-D effect</td>
398 <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td>
399 <td>pay attention to warning messages.</td>
403 <td><a href="command-line-options.html#remote">-remote <var>command</var></a></td>
404 <td>execute a command in an remote display process</td>
408 <td><a href="command-line-options.html#resample">-resample <var>geometry</var></a></td>
409 <td>change the resolution of an image</td>
413 <td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td>
414 <td>resize the image</td>
418 <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td>
419 <td>settings remain in effect until parenthesis boundary.</td>
423 <td><a href="command-line-options.html#roll">-roll <var>geometry</var></a></td>
424 <td>roll an image vertically or horizontally</td>
428 <td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td>
429 <td>apply Paeth rotation to the image</td>
433 <td><a href="command-line-options.html#sample">-sample <var>geometry</var></a></td>
434 <td>scale image with pixel sampling</td>
438 <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td>
439 <td>horizontal and vertical sampling factor</td>
443 <td><a href="command-line-options.html#scene">-scene <var>value</var></a></td>
444 <td>image scene number</td>
448 <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td>
449 <td>seed a new sequence of pseudo-random numbers</td>
453 <td><a href="command-line-options.html#segment">-segment <var>values</var></a></td>
454 <td>segment an image</td>
458 <td><a href="command-line-options.html#set">-set <var>attribute value</var></a></td>
459 <td>set an image attribute</td>
463 <td><a href="command-line-options.html#sharpen">-sharpen <var>geometry</var></a></td>
464 <td>sharpen the image</td>
468 <td><a href="command-line-options.html#size">-size <var>geometry</var></a></td>
469 <td>width and height of image</td>
473 <td><a href="command-line-options.html#strip">-strip</a></td>
474 <td>strip image of all profiles and comments</td>
478 <td><a href="command-line-options.html#thumbnail">-thumbnail <var>geometry</var></a></td>
479 <td>create a thumbnail of the image</td>
483 <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td>
484 <td>transparent color</td>
488 <td><a href="command-line-options.html#black-threshold">-black-threshold <var>value</var></a></td>
489 <td>force all pixels below the threshold into black</td>
493 <td><a href="command-line-options.html#trim">-trim</a></td>
494 <td>trim image edges</td>
498 <td><a href="command-line-options.html#update">-update <var>seconds</var></a></td>
499 <td>detect when image file is modified and redisplay</td>
503 <td><a href="command-line-options.html#verbose">-verbose</a></td>
504 <td>print detailed information about the image</td>
508 <td><a href="command-line-options.html#version">-version</a></td>
509 <td>print version information</td>
513 <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td>
514 <td>access method for pixels outside the boundaries of the image</td>
518 <td><a href="command-line-options.html#visual">-visual</a></td>
519 <td>display image using this visual type</td>
523 <td><a href="command-line-options.html#write">-window <var>id</var></a></td>
524 <td>display image to background of this window</td>
528 <td><a href="command-line-options.html#write">-window-group <var>id</var></a></td>
529 <td>exit program when this window id is destroyed</td>
533 <td><a href="command-line-options.html#write">-write <var>filename</var></a></td>
534 <td>write images to this file</td>
540 <footer class="magick-footer">
541 <p><a href="support.html">Donate</a> •
542 <a href="sitemap.html">Sitemap</a> •
543 <a href="links.html">Related</a> •
544 <a href="architecture.html">Architecture</a>
546 <p><a href="display.html#">Back to top</a> •
547 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> •
548 <a href="http://nextgen.imagemagick.org/script/contact.php">Contact Us</a></p>
549 <p><small>© 1999-2015 ImageMagick Studio LLC</small></p>
551 </div><!-- /.container -->
553 <script src="http://nextgen.imagemagick.org/js/magick.html"></script>