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?
Font Sizes and Density
Re: Font Sizes and Density
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.
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Font Sizes and Density
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
see http://www.imagemagick.org/script/comma ... hp#density
Last edited by fmw42 on 2009-01-29T11:53:32-07:00, edited 1 time in total.
Re: Font Sizes and Density
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
Thank you very much!