concat jpgs vertically one after the other

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sadfub

concat jpgs vertically one after the other

Post by sadfub »

Hi,

I'm searching a (commandline) tool where I could paste some jpg files vertically together just like this:

------
| A |
------ , and

------
| B |
------ , to one new jpg:


------
| A |
------
| B |
------

with cmd line tool montage I got something similar just horizontally, but without the original size of the jpg's. Thank you for your help.

BTW: I would like to thank ImageMagick for great convert tool, and their awesome work: Thanks.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: concat jpgs vertically one after the other

Post by Bonzo »

append should do it:

Code: Select all

exec("/usr/local/bin/convert -background white -gravity Center A.jpg B.jpg -append output.jpg");
sadfub

Re: concat jpgs vertically one after the other

Post by sadfub »

Yihaaa, Yes, this is why I'm impressed on those great cmd line tools. Thanks again!
Post Reply