How to create a montage like the one I made above for my header pic? It’s almost too simple, but first, credit where it’s due. I would have never had the idea to do that if it hadn’t been for the theme this blog is currently running, which is this one.
First, go to Google Images or whatever engine you use and search for images of your preferred topic. The sizes don’t matter, just save them all to the same folder, let’s call it “montage” here.
Secondly, install ImageMagick. Most Linux distributions will already have it, if yours doesn’t or in Windows, download and install it.
Thirdly, run this Bash script within that folder.
for img in `ls *.*`
convert -resize 50x50! $img shrunk-$img
It simply forces each image to resize to a dimension of 50×50 pixels, and they’ll now be prefixed with the word “shrunk”.
Now you’ll want to run this command in the shell in the same directory, of course:
montage *.* -mode Concatenate -tile 30x3 montage_array.jpg
This will stitch the pictures together into an array, 30 pictures wide by 3 rows high called montage_array.jpg
Of course, you can put all this into one bigger script and move the originals or
ls | grep shrunk or whatever. Feel free to improve it, as always. Good luck!