Page 1 of 1

-size for label

Posted: 2012-11-21T00:17:40-07:00
by snibgo
http://www.imagemagick.org/Usage/text/ says that when pointsize isn't given, and either width or height for size is given, "label:" will choose the best pointsize to fill the width or height, and will set the required height or width.

However, the command:

Code: Select all

"%IMG%convert" -background lightblue -fill blue -size 160x label:Anthony label_size_width.gif
"%IMG%convert" label_size_width.gif -identify null:
... creates an image 160x15, using a small pointsize such that it occupies less than half the width.

Even worse, the command:

Code: Select all

"%IMG%convert" -background lightblue -fill blue -size x40 label:Anthony label_size_height.gif
... never completes. It just makes my CPU fan go crazy.

IM 6.7.9-Q16 on Windows 7.

Re: -size for label

Posted: 2012-11-21T11:08:17-07:00
by fmw42
I get the same on IM 6.8.0.5 Q16 Mac OSX Snow Leopard (compiled without PANGO). PNG looks terrible. GIF looks better but is not adjusted for the width

convert -background lightblue -fill blue -size 160x -font arial label:Anthony label_test.png

Image


convert -background lightblue -fill blue -size 160x -font arial label:Anthony label_test.gif

Image

Re: -size for label

Posted: 2012-11-21T11:15:33-07:00
by snibgo
Isn't this the bugs forum? Or is there another one?

Re: -size for label

Posted: 2012-11-21T11:21:19-07:00
by fmw42
snibgo wrote:Isn't this the bugs forum? Or is there another one?
Yes! I am still asleep. :oops: Thanks. Corrected above.