Combining two differnt size images into one of the same 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
cativo
Posts: 3
Joined: 2012-11-21T10:12:54-07:00
Authentication code: 6789

Combining two differnt size images into one of the same size

Post by cativo »

What's the best and quickest way to take one image, stretch it vertically to match the vertical dimension of another image, then join them together into one image with no boarders?

For example:

Image
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Combining two differnt size images into one of the same

Post by Bonzo »

I would guess something like:

Code: Select all

Variable = identify -ping -format "%[fx:h]" image1

convert image1 ( image2 -resize xVariable ) +append image3
Post Reply