Combine two images of different size..?

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
ziasumo

Combine two images of different size..?

Post by ziasumo »

How to simple combine two images in IMageMagic Script if these are of differnet size...?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combine two images of different size..?

Post by fmw42 »

please clarify how you want to combine them. do you want them side by side? do you want on on top of the other? what do you really need?

Are you using Imagick PHP API or just ImageMagick in command line?
ziasumo

Re: Combine two images of different size..?

Post by ziasumo »

I just want to combine them side by side.
like
Before
Image
Image
Final
ImageImage
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Combine two images of different size..?

Post by fmw42 »

convert image1 image2 -gravity center -background black +append result
ziasumo

Re: Combine two images of different size..?

Post by ziasumo »

Thanks buddy..
It really worked
Post Reply