Re: mogrify resolution of png image: error when using PixelsPerInch unit

Anthony Thyssen <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20091026125114.6a96ab82@wraith>
On Sun, 25 Oct 2009 10:33:52 +0100
geo cherchetout <[email protected]> wrote:

| On 24.10.2009 19:46, *[email protected]* wrote:
| 
| > The PNG image specification accepts undefined units and pixels-per-centimeter.
| > It does not support pixels-per-inch.
| 
| OK, thank you. Perhaps even convert|mogrify converts pixels-per-centimeter
| to pixels-per-meter. http://www.w3.org/TR/2003/REC-PNG-20031110/#11pHYs
| 
|
| $ mogrify -density 200x200 -units PixelsPerInch image.png
| $ identify -verbose image.png | grep -A 1 Resolution
|   Resolution: 199.99x199.99
|   Units: PixelsPerCentimeter
|

To me I would class the above as a bug.

The -units specify that the density setting was set to pixels-per-inch
so perhaps the PNG encoder should translate density to
pixels-per-centimeter seeing as the PNG format does not understand
pixels-per-inch.

It would of course be a different matter if the -units were unspecified!


  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
   HELLO, I'm a more persuasive signature virus!  Join in the fun and copy me 
  into yours!  C'mon, it's really fun!  And such a cool concept, too!  That's
  it, just snip me out of this letter and append me to your .sig...PLEEEEZE??
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.