Page 1 of 1
x-offset of annotate with stroke
Posted: 2007-02-11T18:51:39-07:00
by RetroJ
Hi,
Please see the experiment shown at this url:
http://jjfoerch.com/bitbucket/annotest/
Whether you want to call this a bug or not is a subjective matter, but I believe the images shown in the second table represent a more useful behavior of annotate.
Re: x-offset of annotate with stroke
Posted: 2007-02-11T20:12:55-07:00
by anthony
You are almost right....
Rather than use +stroke to explicitally turn it off, (and thus turning off the strokewidth, which in tern effects gravity placement), try just setting the stroke
color to 'none' so the stroke width still applies...
Hmmm testing...
Code: Select all
convert -gravity East -size 100x100 xc:white -pointsize 72 \
-stroke blue -strokewidth 10 -annotate +0+0 'HI' \
-stroke none -annotate +0+0 'HI' \
x:
Nope that failes too... strokewidth was still reduced to 0 with regards to the effects of gravity!
This looks like a bug alright, and shows that there is a difference between stroke being turned off, and stroke being set to transparency.
Adding a bug report to the IM examples bug testing page (may take a day to appear).
Re: x-offset of annotate with stroke
Posted: 2007-02-11T21:17:47-07:00
by magick
We will have a fix to the problem you reported within a day or two. Thanks for alerting us to the problem.
Re: x-offset of annotate with stroke
Posted: 2007-02-12T09:28:40-07:00
by RetroJ
Thank you!
Re: x-offset of annotate with stroke
Posted: 2007-02-21T21:02:16-07:00
by anthony
The problem has now been resolved.
The stroke width will play no part in the position calculation, so if you want space for the stroke width, you will have to add space for it in the text positioning offset for that edge.