Page 1 of 1

Annotate, (and draw) gives odd result

Posted: 2008-08-13T01:15:34-07:00
by nsh
first, Sorry if this is a duplicate post. but i can't find a post about this issue. When using annotate on one server it gives attached result (see image below).

what can be wrong in the installation ?

ps, i have tested two different ways, with draw, and with annotate, same result.

convert $1 \
-size 1x18 xc:Yellow -background Yellow -append \
-gravity South -draw "text 0,0 'Faerie Dragon'" \
$2

convert \
$1 \
-gravity South -background YellowGreen -splice 0x18 \
-annotate +0+5 'Digitaljobb' \
$2

Image
Image
btw, it works on my local mac, but not on a sparc solaris server...

sparc,

Version: ImageMagick 6.2.9 09/22/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

mac,

Version: ImageMagick 6.2.9 09/23/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

Re: Annotate, (and draw) gives odd result

Posted: 2008-08-13T05:47:32-07:00
by nsh
After some research and trial and error, i found that i need to give the option -font Helvetica to get the annotate to function

convert testimage.jpg -gravity South -background YellowGreen -splice 0x18 -font Helvetica -draw "text 0,0 'Anthony'" ut.jpg

convert testimage.jpg -gravity South -background YellowGreen -splice 0x18 -font Helvetica -annotate 0x0 test ut2.jpg

strange that no errors where produced when missing -font if it's required...

Re: Annotate, (and draw) gives odd result

Posted: 2008-08-13T07:07:49-07:00
by Bonzo
You are also missing a pointsize and fill for the font. As far as I know IM uses default fonts, colours and size if nothing specified; I always put them in to be safe.
I wonder if there is no default font in your setup ? I was doing a similar thing for another post on the forum last night and my home system would draw and annotate an image even though I had not specified the font, fill or size.

Re: Annotate, (and draw) gives odd result

Posted: 2008-08-13T17:55:56-07:00
by anthony
You can always upload a TTF font to use directly, as it looks like the IM installation with regards to fonts is pooched.