Hi there,

I hope someone is using Image::Magick here. I just installed it (win
xp, active Perl...), I'm trying to anotate some text, here is my
example script:

use Image::Magick;
my $colour1 = ("ff0000");
my $colour2 = ("0000ff");
my $text = ("Hello World");
my $image=Image::Magick->new;
$image->Set(size=>'30x180');
$image->Read("gradient:#$colour1-#$colour2");
$image->Raise('3x3');
$image->Rotate(-90);
$image->Annotate(text=>$text,font=>'@c:/windows/fonts/arial.ttf',pen=>'black', 
gravity=>'Center',pointsize=>18);
$image->Write('1.png');
undef($image);

1.png is written, gradient is good, but no text there! When I turned
on warnings, no wanrnings displayed. Also I tried in
cmd:

montage -geometry +0+0 -background skyblue -label "Faerie Dragon" 1.png 2.png

but again, no text is rendered into destination. I don't know where is
problem, maybe my instalation is bad ? Could someone try these
examples ?

I am using ImageMagick-6.0.8-Q16

Thanks a lot

P.S.: I have also Ghost Script installed, it is needed for this
purpose ? (render text into image)

/Brano


-=x=-
Skontrolované antivírovým programom NOD32


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to