Composite of two images - but top image can be any size
Posted: 2014-12-19T15:08:03-07:00
So I have a background jpg that is 1500w x 2100h. But this can be adjusted to whatever I need. I've thought just maybe making it 2100x2100.
I want to be able to take a horizontal or vertical main image and place it on top but no matter the size (could be coming in as 3:2 or maybe a pano) be able to make it fit with a border of at least 200px.
Examples of what the output should be:
Vertical Image coming in:
I've started with code that looks like this:
But I don't know how to account of veri & horizontal. The goal is then to output the image and then print it as a 5x7 print.
Sorry if I'm being vague. just began learning all of the ins an out of IM.
I want to be able to take a horizontal or vertical main image and place it on top but no matter the size (could be coming in as 3:2 or maybe a pano) be able to make it fit with a border of at least 200px.
Examples of what the output should be:
Vertical Image coming in:
I've started with code that looks like this:
Code: Select all
convert bg.jpg puppy.jpg -geometry '1900x1900<' -gravity center -composite output.jpg
Sorry if I'm being vague. just began learning all of the ins an out of IM.