Arched or Arc Text with $image->Annotate ?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
viarun
Posts: 10
Joined: 2010-12-20T11:57:07-07:00
Authentication code: 8675308

Arched or Arc Text with $image->Annotate ?

Post by viarun »

Hello,

I see that the command line version of ImageMagick allows for two ways to have text follow a curve when using "convert -annotate"

#1: http://www.imagemagick.org/Usage/fonts/#arch
#2: http://www.imagemagick.org/Usage/fonts/#arc

I've tried various incantations with the perl API, and can't seem to generate curved text with the $image->Annotate method.

Any help would be appreciated.

I'm using version 6.5.7 of Image::Magick.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Arched or Arc Text with $image->Annotate ?

Post by fmw42 »

the arc or arching is not achieved with annotate, but with -wave or -distort arc. look carefully at those examples and you will see that the annotate comes first and then the result is processed by one or the other of the above functions (all in one command line). In the API's you will need to call each separately I suspect, though I am not a user of any APIs only the command line.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Arched or Arc Text with $image->Annotate ?

Post by el_supremo »

In my MagickWand examples in C (see link in my sig) I have an example of text effects, one of which is arcing text. Annotate is used to draw the original text and then the image is distorted. Perhaps the C code will help you figure out how to do it with Perl.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Post Reply