Code: Select all
-resize "%%[fx:max(u.w,v.w)]x"
Code: Select all
-resize "%%[fx:max(u.w,v.w)]x"
snibgo wrote: ↑2018-02-06T22:36:51-07:00 "+append" appends horizontally. "-append" appends vertically. You would adjust the width instead of the height:The "-resize" normally takes two numbers, like 23x34. for width and height. You are supplying only one, so IM calculates the other.Code: Select all
-resize "%%[fx:max(u.w,v.w)]x"
Ok, since you asked.. I'm trying to not abuse of you guy's patience but... would it be possible to automatically, instead of just merging them and keeping their original height or width, to create a new image with a height and width already defined, and to merge them side by side in it?
Code: Select all
convert image1.jpg image2.jpg -resize "500x400^" -gravity center -crop 500x400+0+0 +repage -bordercolor white -border 2 +append result.jpg
Code: Select all
convert image1.jpg image2.jpg -resize "500x400^" -gravity center -extent 500x400 -bordercolor white -border 2 +append result.jpg