Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.97
-
N/A
Description
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
example_ppi.jpg getPhysicalWidthDpi: 72 getPhysicalHeightDpi: 72 example_ppmm.jpg getPhysicalWidthDpi: 11 getPhysicalHeightDpi: 71
While you'd expect the value 71 for getPhysicalWidthDpi for the second image.