"Ashley M. Kirchner" on wrote...
|
| Can someone tell me why the following doesn't produce an annotated
| image? According to 'convert -list Type' that font exists (and checking
| the xml file, it's also in the right spot on the system.)
|
|
| ----------
| #!/usr/bin/perl -w
| use Image::Magick;
|
| my $string = 'Test overlay.';
|
| my $image = new Image::Magick;
| $image->Read('snapshot-00000.rgb');
| $image->Annotate(text=>$string, font=>'BitstreamVeraSans',
| pointsize=>11, fill=>'black');
| $image->Write(filename=>'capture.jpg', quality=>85);
| undef $image;
| ----------
While I haven't even tried this code I do need to ask one thing...
Where is the annotation being positioned?
If it all defaults to absolut defaults, +0+0 then the string is
probably just off the top edge image and will not be visible unless some
of the characters has decenders! EG? tailed lowercase letters: pqjyg
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
Neelix: "Is something wrong?"
Doctor: "Yes, Terribly wrong!" (to Kes) "Your brain is not on file!"
-- StarTrek Voyager "Time and Again"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users