Page 1 of 1

concat jpgs vertically one after the other

Posted: 2007-04-04T02:59:09-07:00
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.

Re: concat jpgs vertically one after the other

Posted: 2007-04-04T04:54:59-07:00
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");

Re: concat jpgs vertically one after the other

Posted: 2007-04-04T06:15:58-07:00
by sadfub
Yihaaa, Yes, this is why I'm impressed on those great cmd line tools. Thanks again!