You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Damjan Jovanovic (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/04 06:49:20 UTC
[jira] [Resolved] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
[ https://issues.apache.org/jira/browse/SANSELAN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Damjan Jovanovic resolved SANSELAN-70.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.0
I've applied the patch to the latest SVN.
Thank you for your contribution!
> 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
> Fix For: 1.0
>
> 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