commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tars Joris (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG image with resolution specified in dots per millimeter
Date Tue, 20 Mar 2012 12:53:38 GMT
Incorrect PhysicalWidthDpi for JPEG image with resolution specified in dots per millimeter
------------------------------------------------------------------------------------------

                 Key: SANSELAN-70
                 URL: https://issues.apache.org/jira/browse/SANSELAN-70
             Project: Commons Sanselan
          Issue Type: Bug
          Components: Format: JPEG
    Affects Versions: 0.97
         Environment: N/A
            Reporter: Tars Joris


The value of physical with DPI is incorrect for JPEG images, which express their resolution
in dots per millimeter.

Two images are attached:
- example_ppi.jpg: Normal image, with resolution specified in dots per inch (72 pixels/in)
- example_ppmm.jpg: Same image, but with resolution specified in dots per millimeter (2.8
pixels/mm)

When running the attached code, the output is
{code}
example_ppi.jpg
getPhysicalWidthDpi: 72
getPhysicalHeightDpi: 72
example_ppmm.jpg
getPhysicalWidthDpi: 11
getPhysicalHeightDpi: 71
{code}

While you'd expect the value 71 for getPhysicalWidthDpi for the second image.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message