Text on a Curved Path

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
kamdeng

Text on a Curved Path

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
kamdeng

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
vikrammandal

Re: Text on a Curved Path

Post by vikrammandal »

Is this possible yet in current version of IM ???
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Text on a Curved Path

Post by Bonzo »

Reread post and I gave an incorrect answer.

WHY can't we delete posts ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Text on a Curved Path

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply