Page 1 of 1

Arc Text Bug

Posted: 2012-09-03T23:38:00-07:00
by Marcel71
When i want to add an Arc test to an image of 400x400 it gives the result i expect. However, if i create a canvas 400x400 and then add the text with an arc, it does places the text totally different.

Code: Select all

convert rose: -resize 400x400! ( -background none -fill red -pointsize 25 label:"Some Text" -virtual-pixel background -distort Arc 180 ) -composite round_text.png
result:Image

But when i create a canvas from 400x400 i would expect the same as above, but then on a clean canvas

Code: Select all

convert -size 400x400 xc:white ( -background none -fill red -pointsize 25 label:"Some Text" -virtual-pixel background -distort Arc 180 ) -composite round_text.png
result:
Image

i use: IM 6.7.9-0

Re: Arc Text Bug

Posted: 2012-09-04T03:59:34-07:00
by Marcel71
Hi,

I found a work-around:

Code: Select all

convert -size 400x400 xc:white ( -size 0x0 -background none -fill red -pointsize 25 label:"Some Text" -virtual-pixel background -distort Arc 180 ) -composite round_text.png


Re: Arc Text Bug

Posted: 2012-09-05T22:49:02-07:00
by anthony
Use +size instead of -size 0x0

The size setting is being used by label:

See http://www.imagemagick.org/Usage/text/#label