Page 1 of 1
Posted: 2006-06-04T23:58:29-07:00
by jpiquemal
Hello
tested with Windows XP:
-draw "text 0,0 'what\'s new'"
this works perfectly
Jean
http://www.konvertor.net
Posted: 2007-01-05T11:17:22-07:00
by mushu
Does anyone have a solution for this under linux?
I'm using PHP's exec with commands that look like this:
Code: Select all
/usr/local/bin/convert 2.jpg -resize 150x150! \( 2.jpg -resize 150x150! -blur 2 -fill 'rgba(255,255,255,0.5)' -draw 'rectangle 0,0,150,150' -fill 'rgba(255,255,255,1.0)' -draw 'rectangle 0,50,150,100' -gravity Center -font Harrison.ttf -fill black -pointsize 11 -annotate 0 'Harper's' \) -append 2a.jpg
\' escaping doesn't seem to work with -annotate or -draw.
Posted: 2007-01-07T16:44:17-07:00
by anthony
The problem is the double quoting screme needed for
-draw.
Look at IM examples...
Drawing Special Characters in the Text String
http://www.cit.gu.edu.au/~anthony/graph ... w/#special
You can however now avoid the double quotes and use the recomended method (with image meta data % escapes)
-annotate
For example
See Annotate text to image option...
http://www.cit.gu.edu.au/~anthony/graph ... cape_chars
Posted: 2007-01-08T08:13:39-07:00
by mushu
That's sorted it. Thanks!