8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10 <meta http-equiv="x-ua-compatible" content="ie=edge" />
11 <title>Command-line Tools: Montage @ ImageMagick</title>
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 Bézier curves."/>
15 <meta name="application-url" content="https://www.imagemagick.org"/>
16 <meta name="generator" content="PHP"/>
17 <meta name="keywords" content="command-line, tools:, montage, 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-2017 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="canonical" href="https://www.imagemagick.org/script/montage.html"/>
29 <link rel="icon" href="../images/wand.png"/>
30 <link rel="shortcut icon" href="../images/wand.ico"/>
31 <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" />
32 <link rel="stylesheet" href="css/magick.css"/>
36 <div class="magick-masthead">
37 <div class="container">
38 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
40 data-ad-client="ca-pub-3129977114552745"
41 data-ad-slot="6345125851"
42 data-ad-format="auto"></ins>
44 (adsbygoogle = window.adsbygoogle || []).push({});
46 <nav class="magick-nav">
47 <a class="magick-nav-item " href="../index.html">Home</a>
48 <a class="magick-nav-item " href="download.html">Download</a>
49 <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
50 <a class="magick-nav-item " href="command-line-processing.html">Command-line</a>
51 <a class="magick-nav-item " href="resources.html">Resources</a>
52 <a class="magick-nav-item " href="develop.html">Develop</a>
53 <a class="magick-nav-item " href="https://www.imagemagick.org/script/search.php">Search</a>
54 <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
58 <div class="container">
59 <div class="magick-header">
60 <p class="text-center"><a href="montage.html#usage">Example Usage</a> • <a href="montage.html#options">Option Summary</a></p>
62 <p class="lead magick-description">Use the <code>montage</code> program to create a composite image by combining several separate images. The images are tiled on the composite image optionally adorned with a border, frame, image name, and more. See <a href="command-line-processing.html">Command Line Processing</a> for advice on how to structure your <code>montage</code> command or see below for example usages of the command.</p>
64 <h2 class="magick-header"><a id="usage"></a>Example Usage</h2>
66 <p>We list a few examples of the <code>montage</code> command here to illustrate its usefulness and ease of use. To get started, let's montage two images into a single composite:</p>
69 montage -background '#336699' -geometry +4+4 rose.jpg red-ball.png montage.jpg
73 <a href="../images/rose.jpg">
74 <img style="margin-top:14px; margin-bottom:14px;" src="../images/rose.jpg" width="70" height="46" alt="rose" />
76 <a href="../images/red-ball.png">
77 <img style="margin-top:2px; margin-bottom:2px;" src="../images/red-ball.png" width="70" height="70" alt="red ball" />
79 <img style="margin-top:27px; margin-bottom:27px;" src="../images/right.gif" width="20" height="20" alt="==>" />
80 <a href="../images/montage.jpg">
81 <img src="../images/montage.jpg" width="148" height="74" alt="montage" />
85 <p>Ok, let's add some decorations:</p>
88 montage -label %f -frame 5 -background '#336699' -geometry +4+4 rose.jpg red-ball.png frame.jpg
92 <a href="../images/rose.jpg">
93 <img style="margin-top:31px; margin-bottom:31px;" src="../images/rose.jpg" width="70" height="46" alt="rose.jpg" />
95 <a href="../images/red-ball.png">
96 <img style="margin-top:19px; margin-bottom:19px;" src="../images/red-ball.png" width="70" height="70" alt="red ball" />
98 <img style="margin-top:44px; margin-bottom:44px;" src="../images/right.gif" width="20" height="20" alt="==>" />
99 <a href="../images/frame.jpg">
100 <img src="../images/frame.jpg" width="176" height="108" alt="frame" />
104 <p>You can find additional examples of using <code>montage</code> at <a href="https://www.imagemagick.org/Usage/montage/">Examples of ImageMagick Usage</a> and <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="https://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p>
106 <h2 class="magick-header"><a id="options"></a>Option Summary</h2>
108 <p>The <code>montage</code> command recognizes these options. Click on an option to get more details about how that option works.</p>
110 <table class="table table-condensed table-striped">
113 <th align="left">Option</th>
114 <th align="left">Description</th>
118 <td><a href="command-line-options.html#adaptive-sharpen">-adaptive-sharpen <var>geometry</var></a></td>
119 <td>adaptively sharpen pixels; increase effect near edges</td>
123 <td><a href="command-line-options.html#adjoin">-adjoin</a></td>
124 <td>join images into a single multi-image file</td>
128 <td><a href="command-line-options.html#affine">-affine <var>matrix</var></a></td>
129 <td>affine transform matrix</td>
133 <td><a href="command-line-options.html#alpha">-alpha</a></td>
134 <td>on, activate, off, deactivate, set, opaque, copy",
135 transparent, extract, background, or shape the alpha channel</td>
139 <td><a href="command-line-options.html#annotate">-annotate <var>geometry text</var></a></td>
140 <td>annotate the image with text</td>
144 <td><a href="command-line-options.html#authenticate">-authenticate <var>value</var></a></td>
145 <td>decrypt image with this password</td>
149 <td><a href="command-line-options.html#auto-orient">-auto-orient</a></td>
150 <td>automagically orient image</td>
154 <td><a href="command-line-options.html#background">-background <var>color</var></a></td>
155 <td>background color</td>
159 <td><a href="command-line-options.html#blue-primary">-blue-primary <var>point</var></a></td>
160 <td>chromaticity blue primary point</td>
164 <td><a href="command-line-options.html#blur">-blur <var>geometry</var></a></td>
165 <td>reduce image noise and reduce detail levels</td>
169 <td><a href="command-line-options.html#border">-border <var>geometry</var></a></td>
170 <td>surround image with a border of color</td>
174 <td><a href="command-line-options.html#bordercolor">-bordercolor <var>color</var></a></td>
175 <td>border color</td>
179 <td><a href="command-line-options.html#caption">-caption <var>string</var></a></td>
180 <td>assign a caption to an image</td>
184 <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td>
185 <td>apply option to select image channels</td>
189 <td><a href="command-line-options.html#clone">-clone <var>index</var></a></td>
190 <td>clone an image</td>
194 <td><a href="command-line-options.html#coalesce">-coalesce</a></td>
195 <td>merge a sequence of images</td>
199 <td><a href="command-line-options.html#colors">-colors <var>value</var></a></td>
200 <td>preferred number of colors in the image</td>
204 <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td>
205 <td>set image colorspace</td>
209 <td><a href="command-line-options.html#comment">-comment <var>string</var></a></td>
210 <td>annotate image with comment</td>
214 <td><a href="command-line-options.html#compose">-compose <var>operator</var></a></td>
215 <td>set image composite operator</td>
219 <td><a href="command-line-options.html#composite">-composite</a></td>
220 <td>composite image</td>
224 <td><a href="command-line-options.html#compress">-compress <var>type</var></a></td>
225 <td>image compression type</td>
229 <td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td>
230 <td>preferred size and location of the cropped image</td>
234 <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td>
235 <td>display copious debugging information</td>
239 <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td>
240 <td>define one or more image format options</td>
244 <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td>
245 <td>horizontal and vertical density of the image</td>
249 <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td>
254 <td><a href="command-line-options.html#display">-display <var>server</var></a></td>
255 <td>get image or font from this X server</td>
259 <td><a href="command-line-options.html#dispose">-dispose <var>method</var></a></td>
260 <td>layer disposal method</td>
264 <td><a href="command-line-options.html#dither">-dither <var>method</var></a></td>
265 <td>apply error diffusion to image</td>
269 <td><a href="command-line-options.html#draw">-draw <var>string</var></a></td>
270 <td>annotate the image with a graphic primitive</td>
274 <td><a href="command-line-options.html#duplicate">-duplicate <var>count,indexes</var></a></td>
275 <td>duplicate an image one or more times</td>
279 <td><a href="command-line-options.html#endian">-endian <var>type</var></a></td>
280 <td>endianness (MSB or LSB) of the image</td>
284 <td><a href="command-line-options.html#extent">-extent <var>geometry</var></a></td>
285 <td>set the image size</td>
289 <td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td>
290 <td>extract area from image</td>
294 <td><a href="command-line-options.html#fill">-fill <var>color</var></a></td>
295 <td>color to use when filling a graphic primitive</td>
299 <td><a href="command-line-options.html#filter">-filter <var>type</var></a></td>
300 <td>use this filter when resizing an image</td>
304 <td><a href="command-line-options.html#flatten">-flatten</a></td>
305 <td>flatten a sequence of images</td>
309 <td><a href="command-line-options.html#flip">-flip</a></td>
310 <td>flip image in the vertical direction</td>
314 <td><a href="command-line-options.html#flop">-flop</a></td>
315 <td>flop image in the horizontal direction</td>
319 <td><a href="command-line-options.html#font">-font <var>name</var></a></td>
320 <td>render text with this font</td>
324 <td><a href="command-line-options.html#frame">-frame <var>geometry</var></a></td>
325 <td>surround image with an ornamental border</td>
329 <td><a href="command-line-options.html#gamma">-gamma <var>value</var></a></td>
330 <td>level of gamma correction</td>
334 <td><a href="command-line-options.html#geometry">-geometry <var>geometry</var></a></td>
335 <td>preferred size or location of the image</td>
339 <td><a href="command-line-options.html#gravity">-gravity <var>type</var></a></td>
340 <td>horizontal and vertical text placement</td>
344 <td><a href="command-line-options.html#green-primary">-green-primary <var>point</var></a></td>
345 <td>chromaticity green primary point</td>
349 <td><a href="command-line-options.html#help">-help</a></td>
350 <td>print program options</td>
354 <td><a href="command-line-options.html#identify">-identify</a></td>
355 <td>identify the format and characteristics of the image</td>
359 <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td>
360 <td>type of image interlacing scheme</td>
364 <td><a href="command-line-options.html#interpolate">-interpolate <var>method</var></a></td>
365 <td>pixel color interpolation method</td>
369 <td><a href="command-line-options.html#kerning">-kerning <var>value</var></a></td>
370 <td>the space between two characters</td>
374 <td><a href="command-line-options.html#label">-label <var>string</var></a></td>
375 <td>assign a label to an image</td>
379 <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td>
380 <td>pixel cache resource limit</td>
384 <td><a href="command-line-options.html#log">-log <var>format</var></a></td>
385 <td>format of debugging information</td>
389 <td><a href="command-line-options.html#mattecolor">-mattecolor <var>color</var></a></td>
394 <td><a href="command-line-options.html#mode">-mode <var>type</var></a></td>
395 <td>framing style</td>
399 <td><a href="command-line-options.html#monitor">-monitor</a></td>
400 <td>monitor progress</td>
404 <td><a href="command-line-options.html#monochrome">-monochrome</a></td>
405 <td>transform image to black and white</td>
409 <td><a href="command-line-options.html#origin">-origin <var>geometry</var></a></td>
410 <td>image origin</td>
414 <td><a href="command-line-options.html#page">-page <var>geometry</var></a></td>
415 <td>size and location of an image canvas (setting)</td>
419 <td><a href="command-line-options.html#pointsize">-pointsize <var>value</var></a></td>
420 <td>font point size</td>
424 <td><a href="command-line-options.html#polaroid">-polaroid <var>angle</var></a></td>
425 <td>simulate a Polaroid picture</td>
429 <td><a href="command-line-options.html#profile">-profile <var>filename</var></a></td>
430 <td>add, delete, or apply an image profile</td>
434 <td><a href="command-line-options.html#quality">-quality <var>value</var></a></td>
435 <td>JPEG/MIFF/PNG compression level</td>
439 <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td>
440 <td>reduce image colors in this colorspace</td>
444 <td><a href="command-line-options.html#quiet">-quiet</a></td>
445 <td>suppress all warning messages</td>
449 <td><a href="command-line-options.html#red-primary">-red-primary <var>point</var></a></td>
450 <td>chromaticity red primary point</td>
454 <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td>
455 <td>pay attention to warning messages.</td>
459 <td><a href="command-line-options.html#repage">-repage <var>geometry</var></a></td>
460 <td>size and location of an image canvas</td>
464 <td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td>
465 <td>resize the image</td>
469 <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td>
470 <td>settings remain in effect until parenthesis boundary.</td>
474 <td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td>
475 <td>apply Paeth rotation to the image</td>
479 <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td>
480 <td>horizontal and vertical sampling factor</td>
484 <td><a href="command-line-options.html#scale">-scale <var>geometry</var></a></td>
485 <td>scale the image</td>
489 <td><a href="command-line-options.html#scenes">-scenes<var>range</var></a></td>
490 <td>image scene range</td>
494 <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td>
495 <td>seed a new sequence of pseudo-random numbers</td>
499 <td><a href="command-line-options.html#shadow">-shadow <var>geometry</var></a></td>
500 <td>simulate an image shadow</td>
504 <td><a href="command-line-options.html#size">-size <var>geometry</var></a></td>
505 <td>width and height of image</td>
509 <td><a href="command-line-options.html#strip">-strip</a></td>
510 <td>strip image of all profiles and comments</td>
514 <td><a href="command-line-options.html#stroke">-stroke <var>color</var></a></td>
515 <td>graphic primitive stroke color</td>
519 <td><a href="command-line-options.html#synchronize">-synchronize</a></td>
520 <td>synchronize image to storage device</td>
524 <td><a href="command-line-options.html#taint">-taint</a></td>
525 <td>mark the image as modified</td>
529 <td><a href="command-line-options.html#texture">-texture <var>filename</var></a></td>
530 <td>name of texture to tile onto the image background</td>
534 <td><a href="command-line-options.html#tile">-tile <var>filename</var></a></td>
535 <td>tile image when filling a graphic primitive</td>
539 <td><a href="command-line-options.html#tile-offset">-tile-offset <var>geometry</var></a></td>
540 <td>set the image tile offset</td>
544 <td><a href="command-line-options.html#title">-title</a></td>
545 <td>decorate the montage image with a title</td>
549 <td><a href="command-line-options.html#transform">-transform</a></td>
550 <td>affine transform image</td>
554 <td><a href="command-line-options.html#transparent">-transparent <var>color</var></a></td>
555 <td>make this color transparent within the image</td>
559 <td><a href="command-line-options.html#transpose">-transpose</a></td>
560 <td>flip image in the vertical direction and rotate 90 degrees</td>
564 <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td>
565 <td>transparent color</td>
569 <td><a href="command-line-options.html#treedepth">-treedepth <var>value</var></a></td>
570 <td>color tree depth</td>
574 <td><a href="command-line-options.html#trim">-trim</a></td>
575 <td>trim image edges</td>
579 <td><a href="command-line-options.html#type">-type <var>type</var></a></td>
584 <td><a href="command-line-options.html#units">-units <var>type</var></a></td>
585 <td>the units of image resolution</td>
589 <td><a href="command-line-options.html#unsharp">-unsharp <var>geometry</var></a></td>
590 <td>sharpen the image</td>
594 <td><a href="command-line-options.html#verbose">-verbose</a></td>
595 <td>print detailed information about the image</td>
599 <td><a href="command-line-options.html#version">-version</a></td>
600 <td>print version information</td>
604 <td><a href="command-line-options.html#view">-view</a></td>
605 <td>FlashPix viewing transforms</td>
609 <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td>
610 <td>access method for pixels outside the boundaries of the image</td>
614 <td><a href="command-line-options.html#white-point">-white-point <var>point</var></a></td>
615 <td>chromaticity white point</td>
622 <footer class="magick-footer">
623 <p><a href="support.html">Donate</a> •
624 <a href="sitemap.html">Sitemap</a> •
625 <a href="links.html">Related</a> •
626 <a href="security-policy.html">Security</a> •
627 <a href="architecture.html">Architecture</a>
629 <p><a href="montage.html#">Back to top</a> •
630 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> •
631 <a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p>
632 <p><small>© 1999-2017 ImageMagick Studio LLC</small></p>
634 </div><!-- /.container -->
636 <script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
637 <script src="../js/magick.html"></script>
641 <!-- Magick Cache 21st January 2017 12:17 -->