I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this:

enter image description here

That is, I have a number of screen shots, and I want to turn them into one image with the original images on top of each other.

By Googling, I have come across the 'composite' command, but I don't know if, and in that case how to use it to get the result I want.

link|improve this question
Did you check out imagemagick multi image layer examples? – timbooo May 30 '11 at 19:35
feedback

1 Answer

up vote 4 down vote accepted

For any number of single input files named in-<something>.jpg:

montage -mode concatenate -tile 1x in-*.jpg out.jpg

ImageMagick is split into several tools for the respective special uses. We want the montage tool here. Then -mode concatenate tells it to just glue them together and -tile 1x is the layout it should use, as without it it would concatenate the images horizontally.

tile follows the format <columns>x<rows>, but either side may be missing and montage will figure out how to meet the constraints. In this case we tell it to use only one column (but any number of rows) to get vertical concatenation.

See ImageMagick Examples -- Montage, Arrays of Images for more examples.

link|improve this answer
Thanks, exactly what I was looking for! – Izbitzer May 31 '11 at 12:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.