Re: Montage: files with different dimension, but right proportions
Posted: 2017-12-15T14:57:50-07:00
Ok, i manually resize height=1000 each image, run command without -resize=1000 and it works fine...
I believe that I need to compute and test the aspect ratio (w/h) to see if it is landscape or portrait.
Then use -resize "widthx1000>" if landscape and -resize "widthx1000" if portrait.
Any workaround ? for example, is there any way to force resize only for height ?
m.
Code: Select all
convert 01.png 02.png 03.png 04.png -bordercolor white -border 12 ( -clone 0,1 +append ) -delete 0,1 ( -clone 0,1 +append ) -delete 0,1 -append -resize 1000 -quality 75 1234.png
Then use -resize "widthx1000>" if landscape and -resize "widthx1000" if portrait.
Any workaround ? for example, is there any way to force resize only for height ?
m.