[Resolved]possible bug annotate with negative rotations
Posted: 2018-10-19T12:19:30-07:00
IM 6.9.10.12 Q16 Mac OSX Sierra
I tried using negative values for the rotation in -annnotate. It did the rotation but the text was offset badly.
-annotate -10x-10+${xoff}+"${off}
However, converting to positive rotations works fine as
-annotate 350x350+${xoff}+"${off}
Compare these two results:
If this is not a bug, then the documentation for -annotate should be modified to say that negative rotations are not allowed.
The documentation says:
I tried using negative values for the rotation in -annnotate. It did the rotation but the text was offset badly.
-annotate -10x-10+${xoff}+"${off}
However, converting to positive rotations works fine as
-annotate 350x350+${xoff}+"${off}
Compare these two results:
Code: Select all
convert logo: -fill red -pointsize 64 -font arial -annotate 350x350+320+240 'testing' test1.jpg
Code: Select all
convert logo: -fill red -pointsize 64 -font arial -annotate -10x-10+320+240 'testing' test2.jpg
If this is not a bug, then the documentation for -annotate should be modified to say that negative rotations are not allowed.
The documentation says:
But it is not really clear if that means only positive values are allowed.Using -annotate degrees or -annotate degreesxdegrees produces an unsheared rotation of the text. The direction of the rotation is positive, which means a clockwise rotation if degrees is positive. (This conforms to the usual mathematical convention once it is realized that the positive y–direction is conventionally considered to be downward for images.)