possible bug montage IM 7.0.3.4 Q16 Mac OSX
Posted: 2016-10-21T11:24:23-07:00
Montage does not seem to honor either -gravity or %[fx:...] computations. Both of the following commands try to center the rose: image under the granite: image. But the result is always southwest centered.
montage: invalid argument for option '-geometry': +%[offx]-10 @ error/montage.c/MontageImageCommand/1029.
or
montage: invalid argument for option '-geometry': +%[fx:(u.w-v.w)/2]]-10 @ error/montage.c/MontageImageCommand/1029.
Result:
Code: Select all
magick montage granite: rose: -background none -tile 1x2 -gravity south -geometry +0-10 result.png
Code: Select all
magick montage granite: rose: -set option:offx '%[fx:(u.w-v.w)/2]' -background none -tile 1x2 -geometry '+%[offx]-10' result.png
or
Code: Select all
magick montage granite: rose: -background none -tile 1x2 -geometry '+%[fx:(u.w-v.w)/2]-10' result.png
Result: