Quick Image Montages
(Mostly notes to myself.)
If you have a lot of images in a directory, and want to quickly make an image montage, here's how to do it on Linux using ImageMagick.
First up, this command finds all JPG file, then resizes them so they fit in a maximum box of 256x256, then sets the quality to 75%, then saves them as JPGs:
find ./ -type f -iname "*.jpg" -exec mogrify -verbose -format jpg -layers Dispose -resize 256\>x256\> -quality 75% {} +
This will overwrite your existing files so make sure you have a backup.
This will take all JPG files, and then arrange them in a montage which is 10 images wide and 5 images high, with no padding between the images, and then save them as a file called "montage.png":
montage *.jpg -tile 10x5 -geometry +0+0 montage.png
If you have more than 10x5 images, this will spit out multiple files. If you want to specify the width, but not the height, use:
montage *.jpg -tile 10x -geometry +0+0 montage.png
Handy if you can't be bothered counting how many images you have.
The ordering is "sort of alphabetical". That is, it sorts them by first character. You may want to renumber your files as 00001.jpg
etc if you have a specific ordering in mind.
The output looks like this:
mike says:
Tom says: