Problem with -annotate and -stroke

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
knedl2007

Problem with -annotate and -stroke

Post by knedl2007 »

Hi folks,

here is my problem: I run IM version 6.3.5 on a Windows system. I am trying to get used to the syntax and everything worked fine so far, but now I wanted to do some text operations using the -annotate image operator. When I use the -stroke operator with this code:

Code: Select all

convert -background white -fill dodgerblue -font Arial -strokewidth 2 -stroke blue -undercolor lightblue -size 160x70 -gravity center label:Anthony label_color.gif
(which is exactly the same as the outline code example in http://www.imagemagick.org/Usage/text/#text_operators),

the result is as follows:
Image

Why does this happen?

In addition, when I use the -annotate operator multiple times in the same way it is used in the examples the resulting texts are not overlayed, but i.e. the second is positioned "over" the first one (or the other way round...)

Thanks for your help in advance,
knedl
knedl2007

Re: Problem with -annotate and -stroke

Post by knedl2007 »

hey, i have found the solution. I did not include the TrueType font in the working directory. With refering to arial.ttf now it works!
Post Reply