Page 1 of 1

Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T01:17:22-07:00
by Andreas Franke
hi,
first i'm new on imagemagick, so please be forbearingly with me. ;-)
i need a circle text in some graphics and i tried this from "Font Effects" on this website:

Code: Select all

convert -font Candice -pointsize 32 -background lightblue \
           -fill navy label:"Anthony's IM Examples" \
           -virtual-pixel background -distort Arc 340 \
           font_circle.jpg
because i'm using php i did this:

Code: Select all

system ("/usr/local/bin/convert -font {$_SERVER['DOCUMENT_ROOT']}/fonts/arial.ttf -pointsize 76 -background lightblue -fill navy label:\"Anthony's IM Examples\" -virtual-pixel background -distort Arc 340 {$_SERVER['DOCUMENT_ROOT']}/imagick-test-2.jpg",$ret);
but instead of what i expected, just this :shock: happens:

Image

How i will get the whole image and not just this little part of it?

ImageMagick Version: 6.4.2 11/28/08

thanks for helping.

Andreas

Re: Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T08:43:25-07:00
by el_supremo
Use +distort instead of -distort.
See the explanation of +distort near the end of this section

Pete

Re: Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T12:09:45-07:00
by Andreas Franke
hi pete,
i did what you told me, but it has no effect:

Code: Select all

system ("/usr/local/bin/convert -font {$_SERVER['DOCUMENT_ROOT']}/fonts/arial.ttf -pointsize 76 -background lightblue -fill navy label:\"Anthony's IM Examples\" -virtual-pixel background +distort Arc 340 {$_SERVER['DOCUMENT_ROOT']}/imagick-test-3.jpg",$ret);
there's the image with +distort instead of -distort.

Image

any suggests?

Andreas

Re: Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T13:14:38-07:00
by el_supremo
That's strange. It works for me with IM 6.4.6-7
Perhaps 6.4.2 had a problem. Can you upgrade?

Pete

Re: Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T14:11:27-07:00
by Bonzo
Worked OK for me as well: Version 6.4.0 04/16/08 Q16 & 6.3.5 08/29/07 Q16

Re: Circle Font (-distort Arc) not working as expected

Posted: 2008-12-01T14:42:51-07:00
by Andreas Franke
hi pete,
el_supremo wrote:That's strange. It works for me with IM 6.4.6-7
Perhaps 6.4.2 had a problem. Can you upgrade?
just compiled 6.4.6-8 and all works fine.

thanks for helping

andreas