Page 1 of 1

Text on a Curved Path

Posted: 2006-08-14T17:17:08-07:00
by kamdeng
Is there any way to generate an image in ImageMagick with text on a curved path? I need to be able to do both examples. Any ideas? Thanks in advance.

Examples:

Curved text up
Image

Curved text down
Image

Posted: 2006-08-15T23:51:21-07:00
by anthony
It will be added at some point in the future as it is part of SVG image handling, but currently actually drawing text on a curved path is not directly posible with IM.

Currently the only way IM can to do this, exactly as shown, is to use some very tricky stuff involving Distortion Maps.
http://www.cit.gu.edu.au/~anthony/graph ... stort_maps

The IM Examples have some good examples on distortion maps, and I have been planing an example in wrapping an image around a circle, but never got back to it.

Posted: 2006-09-19T07:37:28-07:00
by kamdeng
Thanks for the information anthony....

I was doing some research and tried this command out....

Code: Select all

convert -size 250x80 xc:white -font Verdana -pointsize 18 -annotate +25+65 "Text on a Curved Path" -wave -60x500 -crop x110+0+10 test.jpg
It works somewhat... but I want the text to not be distorted/skewed. Just placed on a path, and also the command would have to be adjusted for each font, size, and string length which will all be dynamic.

Any other ideas anyone? Thanks.

Posted: 2006-09-19T19:21:39-07:00
by anthony
Currently that is NOT posible with IM, yet.

However it is posible in SVG, and that IM can decode and convert to images using the RSVG utility.

Re: Text on a Curved Path

Posted: 2007-08-02T22:34:01-07:00
by vikrammandal
Is this possible yet in current version of IM ???

Re: Text on a Curved Path

Posted: 2007-08-03T14:32:34-07:00
by Bonzo
Reread post and I gave an incorrect answer.

WHY can't we delete posts ?

Re: Text on a Curved Path

Posted: 2007-08-03T21:17:28-07:00
by anthony
No it is not posible yet, and probably will not be for a long time. Gradient abilities are only just being intergrated into the MVG drawing engine.