1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 21:15:53 +02:00
tldr/pages/common/montage.md
Vitor Henrique d79a1667e3
pages*: refine wording (#12132)
* pages*: refine wording

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2024-02-09 19:25:36 +05:30

1.1 KiB

montage

Tiles images into a customizable grid. Part of ImageMagick. More information: https://imagemagick.org/script/montage.php.

  • Tile images into a grid, automatically resizing images larger than the grid cell size:

montage {{path/to/image1.jpg path/to/image2.jpg ...}} {{path/to/montage.jpg}}

  • Tile images into a grid, automatically calculating the grid cell size from the largest image:

montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} {{path/to/montage.jpg}}

  • Specify the grid cell size and resize images to fit it before tiling:

montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{640x480+0+0}} {{path/to/montage.jpg}}

  • Limit the number of rows and columns in the grid, causing input images to overflow into multiple output montages:

montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -tile {{2x3}} {{montage_%d.jpg}}

  • Resize and crop images to fill their grid cells before tiling:

montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -resize {{640x480^}} -gravity {{center}} -crop {{640x480+0+0}} {{path/to/montage.jpg}}