Annotate with FX expression using IM6
Posted: 2017-10-15T21:17:23-07:00
Using IM 6.9.9-20 Q16 x64 HDRI with Windows 10, I get an unexpected result when running this command...
The command should create three canvases, annotate them with numbers 1, 2, and 3, then crop each canvas into halves. The actual output is these six panels (which I've appended for display)...
Annotate is numbering the panels 1, 3, and 5 as if it's counting relative to the six images in the stack after the crop, even though the annotate operation occurs before the crop and should only affect the original three images.
If I run the same command with IM 7.0.7-8 by substituting "magick" for "convert", the output is as expected with the panels numbered 1, 2, and 3.
Code: Select all
convert -size 64x64 xc: xc: xc: -gravity northwest ^
-pointsize 24 -annotate +0+0 "%[fx:t+1]" +gravity -crop 2x1@ out6.png
Annotate is numbering the panels 1, 3, and 5 as if it's counting relative to the six images in the stack after the crop, even though the annotate operation occurs before the crop and should only affect the original three images.
If I run the same command with IM 7.0.7-8 by substituting "magick" for "convert", the output is as expected with the panels numbered 1, 2, and 3.