Circle Font (-distort Arc) not working as expected

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
Andreas Franke

Circle Font (-distort Arc) not working as expected

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

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

Post by el_supremo »

Use +distort instead of -distort.
See the explanation of +distort near the end of this section

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Andreas Franke

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

Post 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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

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

Post 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
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post by Bonzo »

Worked OK for me as well: Version 6.4.0 04/16/08 Q16 & 6.3.5 08/29/07 Q16
Andreas Franke

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

Post 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
Post Reply