Page 1 of 1

Problem with convert

Posted: 2012-11-25T14:54:01-07:00
by lleche
The following command does not work anymore:
convert -background lightblue -fill blue -font Verdana -size x40 label:Anthony label_size_height.gif

Just hang forever. Seems to be due to the size parameter (-size 140x40 works fine)
Is it a known issue?

Version: ImageMagick 6.8.0-6 2012-11-25 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenCL HDRI

MacOSX 10.7.5

lleche

Re: Problem with convert

Posted: 2012-11-25T15:00:53-07:00
by fmw42
I can confirm on Mac OSX Snow Leopard IM 6.8.0.6 Q16. I waited over 4 minutes for it to finish and it did not so I aborted.



time convert -background lightblue -fill blue -font Verdana -size x40 label:Anthony show:

After aborting:

real 4m11.533s
user 3m32.761s
sys 0m38.310s

Re: Problem with convert

Posted: 2012-11-25T16:16:11-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.0-7 Beta available by sometime tomorrow. Thanks.

Re: Problem with convert

Posted: 2012-11-26T09:24:14-07:00
by snibgo
See also viewtopic.php?f=3&t=22306 , where I reported that the converse (specifying the width but not the height) doesn't work properly.

Re: Problem with convert

Posted: 2012-11-26T11:15:40-07:00
by fmw42
In IM 6.8.0.7 Q16, I get the following:

This seems adequate:

convert -background lightblue -fill blue -font Verdana -size x40 label:Anthony label_size_height.gif

Image


This does not seem very good --- I would expect a larger font to fill the width with a larger height to support it:

convert -background lightblue -fill blue -font Verdana -size 100x label:Anthony label_size_width.gif

Image

So it would appear that there is still a bug in the WIDTHx code

P.S. I understand that it is very hard to get label: and caption: to work for every font and size without clipping off parts of text or having the font be too small. Perhaps it depends upon the font sizes available for any given font?