Page 2 of 2

Re: any simpler command draw text with outer color like this

Posted: 2012-08-23T19:36:25-07:00
by anthony
Annotate is from top left corner by default to baseline.

To make it relative to the center add -gravity center before the first annotation.

Annotate is just a short hand for the draw text command, but without needing double quotes, and providing the use of percent escapes.

Re: any simpler command draw text with outer color like this

Posted: 2012-08-24T00:50:35-07:00
by kissson
really good, thanks, I want this becoz xargs quite buggy in cmd, and 10+MB bat is terrible

>convert -size 500x500 xc:red -pointsize 100 -font Vademecum.ttf -pointsize 100 ^
-gravity center ^
-fill turquoise1 -annotate -2-2 test ^
-annotate -2+2 test ^
-annotate +2+2 test ^
-annotate +2-2 test ^
-annotate +0-2 test ^
-annotate -2+0 test ^
-annotate +0+2 test ^
-annotate +2+0 test ^
-fill red -annotate +0+0 test ^
out.jpg
https://docs.google.com/open?id=0Bz3bfd ... m16WWtBcXM

>convert -size 500x500 xc:red -pointsize 100 -font "Vademecum.ttf" ^
-fill turquoise1 -stroke none -draw "gravity center text -2,-2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text -2, 2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text 2, 2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text 2,-2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text 0,-2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text -2, 0 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text 0, 2 'test'" ^
-fill turquoise1 -stroke none -draw "gravity center text 2, 0 'test'" ^
-fill red -stroke none -draw "gravity center text 0,0 'test'" ^
out.jpg
https://docs.google.com/open?id=0Bz3bfd ... U9qYWFwemc