possible bugs label: IM 6.7.9.0 Q16

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bugs label: IM 6.7.9.0 Q16

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bugs label: IM 6.7.9.0 Q16

Post 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.
breezin
Posts: 3
Joined: 2012-08-21T19:25:49-07:00
Authentication code: 67789

Re: possible bugs label: IM 6.7.9.0 Q16

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