You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Tars Joris (Created) (JIRA)" <ji...@apache.org> on 2012/03/20 13:53:38 UTC
[jira] [Created] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
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
[jira] [Updated] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
Posted by "Tars Joris (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SANSELAN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tars Joris updated SANSELAN-70:
-------------------------------
Attachment: Main.java
Test code.
> 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
[jira] [Updated] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
Posted by "Tars Joris (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
Posted by "Tars Joris (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SANSELAN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tars Joris updated SANSELAN-70:
-------------------------------
Attachment: jpeg-dpi.patch.txt
Possible fix to the problem.
> 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
[jira] [Resolved] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG
image with resolution specified in dots per millimeter
Posted by "Damjan Jovanovic (Resolved) (JIRA)" <ji...@apache.org>.
[ 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