How to concatenate 2 images

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
6martina6

How to concatenate 2 images

Post by 6martina6 » 2010-02-08T02:37:01-07:00

Hi all,
I'd like to know if it is possible to concatenate 2 images (img1.jpg, img2.jpg) in one single image.
My 2 images have size 350x250. I'd like to concatenate them to have an image of 700x250.
Is there any function to achieve this?
Thank you very much

snibgo
Posts: 10934
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to concatenate 2 images

Post by snibgo » 2010-02-08T05:42:04-07:00

I'd use the montage command, with a suitable geometry to get the gap between the images.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 24097
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to concatenate 2 images

Post by fmw42 » 2010-02-08T11:15:41-07:00

convert image1 image2 +append result

see http://www.imagemagick.org/script/comma ... php#append

6martina6

Re: How to concatenate 2 images

Post by 6martina6 » 2010-02-09T05:25:37-07:00

That's great! Thanks a lot!

Post Reply