Page 1 of 1

possible bugs label: IM 6.7.9.0 Q16

Posted: 2012-08-21T22:05:59-07:00
by fmw42
IM 6.7.9.0 Q16 Mac OSX Snow Leopard

label: does not seem to work well/consistently when -size is specified

Reference: viewtopic.php?f=1&t=21715

Here are my tests:


Specify both width and height: Neither size is correct.

convert -size 120x15 -gravity center -background lightblue -fill '#324C7D' -font Arial label:'TEST HIGH SCHOOL' 1test_label1.png
Image

convert -size 115x15 -gravity center -background lightblue -fill '#324C7D' -font Arial label:'TEST HIGH SCHOOL' 1test_label2.png
Image


Specify just width: Only second width seems to work

convert -size 120x -gravity center -background lightblue -fill '#324C7D' -font Arial label:'TEST HIGH SCHOOL' 1test_label3.png
Image

convert -size 115x -gravity center -background lightblue -fill '#324C7D' -font Arial label:'TEST HIGH SCHOOL' 1test_label4.png
Image


No width or height specified: Works fine.

convert -gravity center -background lightblue -fill '#324C7D' -font Arial label:'TEST HIGH SCHOOL' 1test_label5.png
Image

Re: possible bugs label: IM 6.7.9.0 Q16

Posted: 2012-08-22T05:52:53-07:00
by magick
We can reproduce the problem you reported and have a patch in ImageMagick-6.7.9-1 Beta, available by sometime tomorrow. Thanks.

Re: possible bugs label: IM 6.7.9.0 Q16

Posted: 2012-08-22T09:20:02-07:00
by breezin
I posted this under the users forum yesterday:

viewtopic.php?f=1&t=21715

I went ahead and upgraded to Version: ImageMagick 6.7.9-1 2012-08-22 Q16

I have the same issue:

Code: Select all

/usr/local/bin/convert -size 115x15 -gravity center -background lightblue -fill '#324C7D' label:'TEST HIGH SCHOOL' test_label.png
Image

If you change the size to 120x15 it works as expected.

Also, this worked with the last version:

Code: Select all

/usr/local/bin/convert -size 125x15 -gravity center -background none -fill '#324C7D' -font /usr/local/lib/ImageMagick/config/colle3.ttf label:'LEIGH HIGH SCHOOL' -rotate '0' -distort Arc '' test_label.png
This worked fine with version IM 6.7.9.0 Q16 ... but with 6.7.9-1 2012-08-22 Q16 it gives me:

convert: Memory allocation failed `TEST HIGH SCHOOL' @ fatal/mogrify.c/MogrifyImage/1421.

Seems to go away if I remove the -rotate '0' -distort Arc '' which is really only used if a value gets set... so I could just remove them if a value is not set. But, since it worked with the last version figured I'd point it out.