Page 1 of 1

Font Sizes and Density

Posted: 2009-01-29T08:53:39-07:00
by jimc99999
In the usage pages at http://www.imagemagick.org/Usage/text/#pointsize, it clearly indicates that increasing the density for a given font point size should result in a larger image, and in fact this used to work. However, when I try this now I get the same size image no matter what density I specify.

prompt% convert -pointsize 72 -density 72 label:Hello 72.jpg
prompt% convert -pointsize 72 -density 90 label:Hello 90.jpg
prompt% identify 72.jpg
72.jpg JPEG 175x83 175x83+0+0 8-bit PseudoClass 256c 3.4kb
prompt% identify 90.jpg
90.jpg JPEG 175x83 175x83+0+0 8-bit PseudoClass 256c 3.4kb

prompt% identify -version
Version: ImageMagick 6.4.8-9 2009-01-28 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC


Any ideas?

Re: Font Sizes and Density

Posted: 2009-01-29T09:00:39-07:00
by jimc99999
As an update, found a machine with an older version of IM on it:

other% convert -version
Version: ImageMagick 6.4.0 04/15/08 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

other% convert -pointsize 72 -density 72 label:Hello 72.jpg
other% convert -pointsize 72 -density 90 label:Hello 90.jpg
other% identify 72.jpg
72.jpg JPEG 160x70 160x70+0+0 PseudoClass 256c 8-bit 2.89062kb
other% identify 90.jpg
90.jpg JPEG 201x87 201x87+0+0 PseudoClass 256c 8-bit 3.69727kb


This functionality is crucial to one of my apps.

Re: Font Sizes and Density

Posted: 2009-01-29T11:50:10-07:00
by fmw42
the -density parameter does not control the size of the image. all it does is set the size to which it will print or display. but the number of pixels is not changed

see http://www.imagemagick.org/script/comma ... hp#density

Re: Font Sizes and Density

Posted: 2009-01-29T11:53:15-07:00
by magick
The bug you reported is fixed in ImageMagick 6.4.8-10 Beta. We'll push this out as a release within the next few days.

Re: Font Sizes and Density

Posted: 2009-01-29T14:27:37-07:00
by jimc99999
Thank you very much!