Page 1 of 1

possible bug montage IM 7.0.3.4 Q16 Mac OSX

Posted: 2016-10-21T11:24:23-07:00
by fmw42
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.

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
montage: invalid argument for option '-geometry': +%[offx]-10 @ error/montage.c/MontageImageCommand/1029.

or

Code: Select all

magick montage granite: rose: -background none -tile 1x2 -geometry '+%[fx:(u.w-v.w)/2]-10' result.png
montage: invalid argument for option '-geometry': +%[fx:(u.w-v.w)/2]]-10 @ error/montage.c/MontageImageCommand/1029.

Result:
Image

Re: possible bug montage IM 7.0.3.4 Q16 Mac OSX

Posted: 2016-10-21T20:41:39-07:00
by GeeMack
fmw42 wrote: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.
In your last example you have a double square bracket "]]" at the end of the FX expression....

Code: Select all

magick montage granite: rose: -background none -tile 1x2 -geometry '+%[fx:(u.w-v.w)/2]]-10' result.png
The error still occurs without it (even on IM 7.0.3-4 on Windows 10 64) so it's not the source of the problem. Just pointing out that typo.

Re: possible bug montage IM 7.0.3.4 Q16 Mac OSX

Posted: 2016-10-21T21:43:48-07:00
by fmw42
Thanks, Geemack. It was a typo. I have fixed it above. Thanks for confirming on Windows.