possible bug stroke offset with -annotate and -gravity IM 6.9.3.10 Q16 Mac OSX
Posted: 2016-05-05T15:58:41-07:00
.
If one uses two different stroke colors and widths with -annotate, they offset differently unless -gravity is northwest
Gravity Southeast: worst
Gravity Center: still bad
Gravity Northwest: fine
If one uses two different stroke colors and widths with -annotate, they offset differently unless -gravity is northwest
Gravity Southeast: worst
Code: Select all
text="Some Sample Text"
convert -size 581x153 xc:gray -font arial -gravity southeast -pointsize 64 \
-stroke black -strokewidth 4 -annotate +10+5 "${text}" \
-stroke white -strokewidth 1 -fill white -annotate +10+5 "${text}" \
"out1.jpg"
Gravity Center: still bad
Code: Select all
text="Some Sample Text"
convert -size 581x153 xc:gray -font arial -gravity center -pointsize 64 \
-stroke black -strokewidth 4 -annotate +10+5 "${text}" \
-stroke white -strokewidth 1 -fill white -annotate +10+5 "${text}" \
"out2.jpg"
Gravity Northwest: fine
Code: Select all
text="Some Sample Text"
convert -size 581x153 xc:gray -font arial -gravity northwest -pointsize 64 \
-stroke black -strokewidth 4 -annotate +10+5 "${text}" \
-stroke white -strokewidth 1 -fill white -annotate +10+5 "${text}" \
"out3.jpg"