[
https://issues.apache.org/jira/browse/SANSELAN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tars Joris updated SANSELAN-70:
-------------------------------
Attachment: example_ppmm.jpg
example_ppi.jpg
Not sure about the license, the image was taken from wikipedia under the
"Creative Commons Attribution-Share Alike 3.0 Unported" license.
> 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
> Labels: patch
> Attachments: Main.java, example_ppi.jpg, example_ppmm.jpg,
> jpeg-dpi.patch.txt
>
>
> 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