Page 1 of 1

Creating text with Arc

Posted: 2011-03-04T05:08:48-07:00
by AnandKrish
Hi,

I am using convert command to create a transparent PNG image with the caption provided. Here i am using -distort Arc to give a arc effect to the text. But i am not getting the specified height and width. The height and width of the image is varying based on the Arc angle. Below i have given the command which i am using to create the image.

Code: Select all

convert -size 1100x1300 -background transparent -fill "rgb(0,0,0)" -font Arial.ttf -gravity North caption:'Welcome!!!' -distort Arc 80 text_curve.png
Here i need to create an image exactly of size 1100 x 1300. Please help me in this regard.

Note: if no arc specifed, then image is creating fine with 1100 x 1300 size.

Thanks,

Re: Creating text with Arc

Posted: 2011-03-04T08:16:49-07:00
by el_supremo
One way would be to resize the image back to the correct width and then pad the height.

Code: Select all

convert -size 1100x1300 -background transparent -fill "rgb(0,0,0)" -font Arial.ttf -gravity North 'caption:Welcome!!!' -distort Arc 80 -resize 1100 -extent 1100x1300 text_curve.png
Pete