Problem with convert

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
lleche
Posts: 10
Joined: 2012-11-25T14:50:18-07:00
Authentication code: 6789

Problem with convert

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem with convert

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

Re: Problem with convert

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with convert

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem with convert

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