Creating curved text

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
Anandkv
Posts: 14
Joined: 2009-11-18T06:54:09-07:00
Authentication code: 8675309

Creating curved text

Post by Anandkv »

Hi all,

I have tried to create text curve to adopt in all available area with the given width and height

Code: Select all

convert -resize 300x108! -font arial -pointsize 71 label:' HEAT ' -virtual-pixel background -background none -distort arc 75 test_image.png
But, i got image in blur and it is not clear. Given below the output which i got from this convert command.
Image

But i would like to get the image like the url given below.
Image


Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating curved text

Post by fmw42 »

Set your -fill color to white, your background to red and most important put the resize at the end, then add -trim.


convert -background red -fill white -font arial -pointsize 71 label:' HEAT ' \
-virtual-pixel background -background red -distort arc 75 -resize 300x108! -trim +repage test_image.png
Anandkv
Posts: 14
Joined: 2009-11-18T06:54:09-07:00
Authentication code: 8675309

Re: Creating curved text

Post by Anandkv »

Thanks for the reply..

i am not concerned with the text color and background. I am only concerned with the text angle and curve. In the above given images, the angle is completely different with the expected result. Kindly please provide a solution for it.

Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Creating curved text

Post by fmw42 »

Post Reply