1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <title>ImageMagick: Command-line Tools: Montage</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 Bézier 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:, 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-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="montage.html#usage">Example Usage</a> • <a href="montage.html#options">Option Summary</a></p> 60 61<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> 62 63<h2 class="magick-header"><a id="usage"></a>Example Usage</h2> 64 65<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> 66 67<pre> 68montage -background '#336699' -geometry +4+4 rose.jpg red-ball.png montage.jpg 69</pre> 70 71<ul> 72 <a href="../images/rose.jpg"> 73 <img style="margin-top:14px; margin-bottom:14px;" src="../images/rose.jpg" width="70" height="46" alt="rose" /> 74 </a> 75 <a href="../images/red-ball.png"> 76 <img style="margin-top:2px; margin-bottom:2px;" src="../images/red-ball.png" width="70" height="70" alt="red ball" /> 77 </a> 78 <img style="margin-top:27px; margin-bottom:27px;" src="../images/right.gif" width="20" height="20" alt="==>" /> 79 <a href="../images/montage.jpg"> 80 <img src="../images/montage.jpg" width="148" height="74" alt="montage" /> 81 </a> 82</ul> 83 84<p>Ok, let's add some decorations:</p> 85 86<pre> 87montage -label %f -frame 5 -background '#336699' -geometry +4+4 rose.jpg red-ball.png frame.jpg 88</pre> 89 90<ul> 91 <a href="../images/rose.jpg"> 92 <img style="margin-top:31px; margin-bottom:31px;" src="../images/rose.jpg" width="70" height="46" alt="rose.jpg" /> 93 </a> 94 <a href="../images/red-ball.png"> 95 <img style="margin-top:19px; margin-bottom:19px;" src="../images/red-ball.png" width="70" height="70" alt="red ball" /> 96 </a> 97 <img style="margin-top:44px; margin-bottom:44px;" src="../images/right.gif" width="20" height="20" alt="==>" /> 98 <a href="../images/frame.jpg"> 99 <img src="../images/frame.jpg" width="176" height="108" alt="frame" /> 100 </a> 101</ul> 102 103<p>You can find additional examples of using <code>montage</code> at <a href="http://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="http://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p> 104 105<h2 class="magick-header"><a id="options"></a>Option Summary</h2> 106 107<p>The <code>montage</code> command recognizes these options. Click on an option to get more details about how that option works.</p> 108 109<table class="table table-condensed table-striped"> 110 <tbody> 111 <tr> 112 <th align="left">Option</th> 113 <th align="left">Description</th> 114 </tr> 115 116 <tr> 117 <td><a href="command-line-options.html#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.html#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.html#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.html#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.html#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.html#authenticate">-authenticate <var>value</var></a></td> 144 <td>decrypt image with this password</td> 145 </tr> 146 147 <tr> 148 <td><a href="command-line-options.html#auto-orient">-auto-orient</a></td> 149 <td>automagically orient image</td> 150 </tr> 151 152 <tr> 153 <td><a href="command-line-options.html#background">-background <var>color</var></a></td> 154 <td>background color</td> 155 </tr> 156 157 <tr> 158 <td><a href="command-line-options.html#blue-primary">-blue-primary <var>point</var></a></td> 159 <td>chromaticity blue primary point</td> 160 </tr> 161 162 <tr> 163 <td><a href="command-line-options.html#blur">-blur <var>geometry</var></a></td> 164 <td>reduce image noise and reduce detail levels</td> 165 </tr> 166 167 <tr> 168 <td><a href="command-line-options.html#border">-border <var>geometry</var></a></td> 169 <td>surround image with a border of color</td> 170 </tr> 171 172 <tr> 173 <td><a href="command-line-options.html#bordercolor">-bordercolor <var>color</var></a></td> 174 <td>border color</td> 175 </tr> 176 177 <tr> 178 <td><a href="command-line-options.html#caption">-caption <var>string</var></a></td> 179 <td>assign a caption to an image</td> 180 </tr> 181 182 <tr> 183 <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td> 184 <td>apply option to select image channels</td> 185 </tr> 186 187 <tr> 188 <td><a href="command-line-options.html#clone">-clone <var>index</var></a></td> 189 <td>clone an image</td> 190 </tr> 191 192 <tr> 193 <td><a href="command-line-options.html#coalesce">-coalesce</a></td> 194 <td>merge a sequence of images</td> 195 </tr> 196 197 <tr> 198 <td><a href="command-line-options.html#colors">-colors <var>value</var></a></td> 199 <td>preferred number of colors in the image</td> 200 </tr> 201 202 <tr> 203 <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td> 204 <td>set image colorspace</td> 205 </tr> 206 207 <tr> 208 <td><a href="command-line-options.html#comment">-comment <var>string</var></a></td> 209 <td>annotate image with comment</td> 210 </tr> 211 212 <tr> 213 <td><a href="command-line-options.html#compose">-compose <var>operator</var></a></td> 214 <td>set image composite operator</td> 215 </tr> 216 217 <tr> 218 <td><a href="command-line-options.html#composite">-composite</a></td> 219 <td>composite image</td> 220 </tr> 221 222 <tr> 223 <td><a href="command-line-options.html#compress">-compress <var>type</var></a></td> 224 <td>image compression type</td> 225 </tr> 226 227 <tr> 228 <td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td> 229 <td>preferred size and location of the cropped image</td> 230 </tr> 231 232 <tr> 233 <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td> 234 <td>display copious debugging information</td> 235 </tr> 236 237 <tr> 238 <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td> 239 <td>define one or more image format options</td> 240 </tr> 241 242 <tr> 243 <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td> 244 <td>horizontal and vertical density of the image</td> 245 </tr> 246 247 <tr> 248 <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td> 249 <td>image depth</td> 250 </tr> 251 252 <tr> 253 <td><a href="command-line-options.html#display">-display <var>server</var></a></td> 254 <td>get image or font from this X server</td> 255 </tr> 256 257 <tr> 258 <td><a href="command-line-options.html#dispose">-dispose <var>method</var></a></td> 259 <td>layer disposal method</td> 260 </tr> 261 262 <tr> 263 <td><a href="command-line-options.html#dither">-dither <var>method</var></a></td> 264 <td>apply error diffusion to image</td> 265 </tr> 266 267 <tr> 268 <td><a href="command-line-options.html#draw">-draw <var>string</var></a></td> 269 <td>annotate the image with a graphic primitive</td> 270 </tr> 271 272 <tr> 273 <td><a href="command-line-options.html#duplicate">-duplicate <var>count,indexes</var></a></td> 274 <td>duplicate an image one or more times</td> 275 </tr> 276 277 <tr> 278 <td><a href="command-line-options.html#endian">-endian <var>type</var></a></td> 279 <td>endianness (MSB or LSB) of the image</td> 280 </tr> 281 282 <tr> 283 <td><a href="command-line-options.html#extent">-extent <var>geometry</var></a></td> 284 <td>set the image size</td> 285 </tr> 286 287 <tr> 288 <td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td> 289 <td>extract area from image</td> 290 </tr> 291 292 <tr> 293 <td><a href="command-line-options.html#fill">-fill <var>color</var></a></td> 294 <td>color to use when filling a graphic primitive</td> 295 </tr> 296 297 <tr> 298 <td><a href="command-line-options.html#filter">-filter <var>type</var></a></td> 299 <td>use this filter when resizing an image</td> 300 </tr> 301 302 <tr> 303 <td><a href="command-line-options.html#flatten">-flatten</a></td> 304 <td>flatten a sequence of images</td> 305 </tr> 306 307 <tr> 308 <td><a href="command-line-options.html#flip">-flip</a></td> 309 <td>flip image in the vertical direction</td> 310 </tr> 311 312 <tr> 313 <td><a href="command-line-options.html#flop">-flop</a></td> 314 <td>flop image in the horizontal direction</td> 315 </tr> 316 317 <tr> 318 <td><a href="command-line-options.html#font">-font <var>name</var></a></td> 319 <td>render text with this font</td> 320 </tr> 321 322 <tr> 323 <td><a href="command-line-options.html#frame">-frame <var>geometry</var></a></td> 324 <td>surround image with an ornamental border</td> 325 </tr> 326 327 <tr> 328 <td><a href="command-line-options.html#gamma">-gamma <var>value</var></a></td> 329 <td>level of gamma correction</td> 330 </tr> 331 332 <tr> 333 <td><a href="command-line-options.html#geometry">-geometry <var>geometry</var></a></td> 334 <td>preferred size or location of the image</td> 335 </tr> 336 337 <tr> 338 <td><a href="command-line-options.html#gravity">-gravity <var>type</var></a></td> 339 <td>horizontal and vertical text placement</td> 340 </tr> 341 342 <tr> 343 <td><a href="command-line-options.html#green-primary">-green-primary <var>point</var></a></td> 344 <td>chromaticity green primary point</td> 345 </tr> 346 347 <tr> 348 <td><a href="command-line-options.html#help">-help</a></td> 349 <td>print program options</td> 350 </tr> 351 352 <tr> 353 <td><a href="command-line-options.html#identify">-identify</a></td> 354 <td>identify the format and characteristics of the image</td> 355 </tr> 356 357 <tr> 358 <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td> 359 <td>type of image interlacing scheme</td> 360 </tr> 361 362 <tr> 363 <td><a href="command-line-options.html#interpolate">-interpolate <var>method</var></a></td> 364 <td>pixel color interpolation method</td> 365 </tr> 366 367 <tr> 368 <td><a href="command-line-options.html#kerning">-kerning <var>value</var></a></td> 369 <td>the space between two characters</td> 370 </tr> 371 372 <tr> 373 <td><a href="command-line-options.html#label">-label <var>string</var></a></td> 374 <td>assign a label to an image</td> 375 </tr> 376 377 <tr> 378 <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td> 379 <td>pixel cache resource limit</td> 380 </tr> 381 382 <tr> 383 <td><a href="command-line-options.html#log">-log <var>format</var></a></td> 384 <td>format of debugging information</td> 385 </tr> 386 387 <tr> 388 <td><a href="command-line-options.html#mattecolor">-mattecolor <var>color</var></a></td> 389 <td>frame color</td> 390 </tr> 391 392 <tr> 393 <td><a href="command-line-options.html#mode">-mode <var>type</var></a></td> 394 <td>framing style</td> 395 </tr> 396 397 <tr> 398 <td><a href="command-line-options.html#monitor">-monitor</a></td> 399 <td>monitor progress</td> 400 </tr> 401 402 <tr> 403 <td><a href="command-line-options.html#monochrome">-monochrome</a></td> 404 <td>transform image to black and white</td> 405 </tr> 406 407 <tr> 408 <td><a href="command-line-options.html#origin">-origin <var>geometry</var></a></td> 409 <td>image origin</td> 410 </tr> 411 412 <tr> 413 <td><a href="command-line-options.html#page">-page <var>geometry</var></a></td> 414 <td>size and location of an image canvas (setting)</td> 415 </tr> 416 417 <tr> 418 <td><a href="command-line-options.html#pointsize">-pointsize <var>value</var></a></td> 419 <td>font point size</td> 420 </tr> 421 422 <tr> 423 <td><a href="command-line-options.html#polaroid">-polaroid <var>angle</var></a></td> 424 <td>simulate a Polaroid picture</td> 425 </tr> 426 427 <tr> 428 <td><a href="command-line-options.html#profile">-profile <var>filename</var></a></td> 429 <td>add, delete, or apply an image profile</td> 430 </tr> 431 432 <tr> 433 <td><a href="command-line-options.html#quality">-quality <var>value</var></a></td> 434 <td>JPEG/MIFF/PNG compression level</td> 435 </tr> 436 437 <tr> 438 <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td> 439 <td>reduce image colors in this colorspace</td> 440 </tr> 441 442 <tr> 443 <td><a href="command-line-options.html#quiet">-quiet</a></td> 444 <td>suppress all warning messages</td> 445 </tr> 446 447 <tr> 448 <td><a href="command-line-options.html#red-primary">-red-primary <var>point</var></a></td> 449 <td>chromaticity red primary point</td> 450 </tr> 451 452 <tr> 453 <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td> 454 <td>pay attention to warning messages.</td> 455 </tr> 456 457 <tr> 458 <td><a href="command-line-options.html#repage">-repage <var>geometry</var></a></td> 459 <td>size and location of an image canvas</td> 460 </tr> 461 462 <tr> 463 <td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td> 464 <td>resize the image</td> 465 </tr> 466 467 <tr> 468 <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td> 469 <td>settings remain in effect until parenthesis boundary.</td> 470 </tr> 471 472 <tr> 473 <td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td> 474 <td>apply Paeth rotation to the image</td> 475 </tr> 476 477 <tr> 478 <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td> 479 <td>horizontal and vertical sampling factor</td> 480 </tr> 481 482 <tr> 483 <td><a href="command-line-options.html#scale">-scale <var>geometry</var></a></td> 484 <td>scale the image</td> 485 </tr> 486 487 <tr> 488 <td><a href="command-line-options.html#scenes">-scenes<var>range</var></a></td> 489 <td>image scene range</td> 490 </tr> 491 492 <tr> 493 <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td> 494 <td>seed a new sequence of pseudo-random numbers</td> 495 </tr> 496 497 <tr> 498 <td><a href="command-line-options.html#shadow">-shadow <var>geometry</var></a></td> 499 <td>simulate an image shadow</td> 500 </tr> 501 502 <tr> 503 <td><a href="command-line-options.html#size">-size <var>geometry</var></a></td> 504 <td>width and height of image</td> 505 </tr> 506 507 <tr> 508 <td><a href="command-line-options.html#strip">-strip</a></td> 509 <td>strip image of all profiles and comments</td> 510 </tr> 511 512 <tr> 513 <td><a href="command-line-options.html#stroke">-stroke <var>color</var></a></td> 514 <td>graphic primitive stroke color</td> 515 </tr> 516 517 <tr> 518 <td><a href="command-line-options.html#synchronize">-synchronize</a></td> 519 <td>synchronize image to storage device</td> 520 </tr> 521 522 <tr> 523 <td><a href="command-line-options.html#taint">-taint</a></td> 524 <td>mark the image as modified</td> 525 </tr> 526 527 <tr> 528 <td><a href="command-line-options.html#texture">-texture <var>filename</var></a></td> 529 <td>name of texture to tile onto the image background</td> 530 </tr> 531 532 <tr> 533 <td><a href="command-line-options.html#tile">-tile <var>filename</var></a></td> 534 <td>tile image when filling a graphic primitive</td> 535 </tr> 536 537 <tr> 538 <td><a href="command-line-options.html#tile-offset">-tile-offset <var>geometry</var></a></td> 539 <td>set the image tile offset</td> 540 </tr> 541 542 <tr> 543 <td><a href="command-line-options.html#title">-title</a></td> 544 <td>decorate the montage image with a title</td> 545 </tr> 546 547 <tr> 548 <td><a href="command-line-options.html#transform">-transform</a></td> 549 <td>affine transform image</td> 550 </tr> 551 552 <tr> 553 <td><a href="command-line-options.html#transparent">-transparent <var>color</var></a></td> 554 <td>make this color transparent within the image</td> 555 </tr> 556 557 <tr> 558 <td><a href="command-line-options.html#transpose">-transpose</a></td> 559 <td>flip image in the vertical direction and rotate 90 degrees</td> 560 </tr> 561 562 <tr> 563 <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td> 564 <td>transparent color</td> 565 </tr> 566 567 <tr> 568 <td><a href="command-line-options.html#treedepth">-treedepth <var>value</var></a></td> 569 <td>color tree depth</td> 570 </tr> 571 572 <tr> 573 <td><a href="command-line-options.html#trim">-trim</a></td> 574 <td>trim image edges</td> 575 </tr> 576 577 <tr> 578 <td><a href="command-line-options.html#type">-type <var>type</var></a></td> 579 <td>image type</td> 580 </tr> 581 582 <tr> 583 <td><a href="command-line-options.html#units">-units <var>type</var></a></td> 584 <td>the units of image resolution</td> 585 </tr> 586 587 <tr> 588 <td><a href="command-line-options.html#unsharp">-unsharp <var>geometry</var></a></td> 589 <td>sharpen the image</td> 590 </tr> 591 592 <tr> 593 <td><a href="command-line-options.html#verbose">-verbose</a></td> 594 <td>print detailed information about the image</td> 595 </tr> 596 597 <tr> 598 <td><a href="command-line-options.html#version">-version</a></td> 599 <td>print version information</td> 600 </tr> 601 602 <tr> 603 <td><a href="command-line-options.html#view">-view</a></td> 604 <td>FlashPix viewing transforms</td> 605 </tr> 606 607 <tr> 608 <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td> 609 <td>access method for pixels outside the boundaries of the image</td> 610 </tr> 611 612 <tr> 613 <td><a href="command-line-options.html#white-point">-white-point <var>point</var></a></td> 614 <td>chromaticity white point</td> 615 </tr> 616 617 </tbody> 618</table> 619 620</div> 621 <footer class="magick-footer"> 622 <p><a href="support.html">Donate</a> • 623 <a href="sitemap.html">Sitemap</a> • 624 <a href="links.html">Related</a> • 625 <a href="architecture.html">Architecture</a> 626</p> 627 <p><a href="montage.html#">Back to top</a> • 628 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 629 <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p> 630 <p><small>© 1999-2016 ImageMagick Studio LLC</small></p> 631 </footer> 632</div><!-- /.container --> 633 634 <script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 635 <script src="../js/magick.html"></script> 636</div> 637</body> 638</html> 639