Blog

Back

11/02/2013

Creating tiles of images with ImageMagick’s montage

I’m following a photography mentorship in Google+. We have weekly assignments on specific subjects of photography.

Due to all this work, I have to create mosaics of the shots I’ve made every week. This can be a time-consuming and boring task. Someone on G+, though, gave me the answer: ImageMagick !

Just go install this package in your distribution (Ubuntu in my case, but any Linux distribution will for sure include it). Along with the package, a bunch of utilities will be installed. One is Montage.

  • Open a command prompt.
  • CD to the directory where you have all the images.
  • Type:
    montage *.jpg -geometry 300×200 -tile 3×2 montage.jpg

This will read all the JPG files in your folder, resize them to 300×200 (proportionally) and it will create a JPG called “montage.jpg” with a 3×2 tile of the images.
If you have more than 6 (3×2) images, it will create montage1.jpg, montage2.jpg… and so on, until all the images are tiled.

Amazingly simple.


© 2018 Esteve Boix | Powered by PmWiki | Original skin Barthelme theme by Scott and ported by Chi Shang.