Font Sizes and Density

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jimc99999
Posts: 21
Joined: 2009-01-29T08:44:41-07:00

Font Sizes and Density

Post 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?
jimc99999
Posts: 21
Joined: 2009-01-29T08:44:41-07:00

Re: Font Sizes and Density

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

Re: Font Sizes and Density

Post 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
Last edited by fmw42 on 2009-01-29T11:53:32-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Font Sizes and Density

Post 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.
jimc99999
Posts: 21
Joined: 2009-01-29T08:44:41-07:00

Re: Font Sizes and Density

Post by jimc99999 »

Thank you very much!
Post Reply