System Grab Bag

View all TLDR pages from common (or from all pages)

montage

ImageMagick image montage tool. Tiles images into a customisable grid. More information: https://imagemagick.org/script/montage.php.
  • Tile images into a grid, automatically resizing images larger than the grid cell size:
    montage {{image1.png}} {{image2.jpg}} {{imageN.png}} montage.jpg
  • Tile images into a grid, automatically calculating the grid cell size from the largest image:
    montage {{image1.png}} {{image2.jpg}} {{imageN.png}} -geometry +0+0 montage.jpg
  • Set the grid cell size and resize images to fit it before tiling:
    montage {{image1.png}} {{image2.jpg}} {{imageN.png}} -geometry 640x480+0+0 montage.jpg
  • Limit the number of rows and columns in the grid, causing input images to overflow into multiple output montages:
    montage {{image1.png}} {{image2.jpg}} {{imageN.png}} -geometry +0+0 -tile 2x3 montage_%d.jpg
  • Resize and crop images to fill their grid cells before tiling:
    montage {{image1.png}} {{image2.jpg}} {{imageN.png}} -geometry +0+0 -resize 640x480^ -gravity center -crop 640x480+0+0 montage.jpg

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.