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 »

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: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to concatenate 2 images

Post by snibgo »

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: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to concatenate 2 images

Post by fmw42 »

convert image1 image2 +append result

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

Re: How to concatenate 2 images

Post by 6martina6 »

That's great! Thanks a lot!
Post Reply