Page 1 of 1

0.85: wrong dpi?

Posted: Tue May 16, 2017 2:11 pm
by phaolo
XnView: MP 0.85 - 64 bit
OS: Windows 7 64bit

Sometimes Xnview reports different dpi for images than other software (Photoshop,Gimp). Bug?

To reproduce:
check the attached images.
They should both have 250 dpi, but Xnviewmp says 72-250.
Which one is wrong?

Re: 0.85: wrong dpi?

Posted: Tue May 16, 2017 2:57 pm
by cday
XnView MP 0.86 shows both uploaded files as 250 DPI [XnView Classic is unable to read the DPI value for kilartdev- witch DA.jpg...]

Re: 0.85: wrong dpi?

Posted: Wed May 17, 2017 12:15 am
by XnTriq
One of the files has conflicting DPI info and is missing the (mandatory) JFIF APP0 marker segment:
  • kilartdev- witch AS.jpg
    • APP0 (JFIF) → Xdensity & Ydensity: 250
    • APP1 (EXIF) → IFD0 → XResolution & YResolution: 250/1 (250)
    • APP1 (EXIF) → IFD1 → XResolution & YResolution: 250/1 (250)
    • APP13 (Photoshop) → ResolutionInfo (hRes & vRes): 250
  • kilartdev- witch DA.jpg
    • APP0 (JFIF) → Xdensity & Ydensity: n/a
    • APP1 (EXIF) → IFD0 → XResolution & YResolution: 2500000/10000 (250)
    • APP1 (EXIF) → IFD1 → XResolution & YResolution: 72/1 (72)
    • APP13 (Photoshop) → ResolutionInfo (hRes & vRes): 250
Labels/tooltips for kilartdev- witch AS.jpg and kilartdev- witch DA.jpg:
  • ImageDPI: {DPI} = 250 / 72 *
  • EXIF - CameraX-Resolution: {EXIF:X-Res} = 250
  • EXIF - CameraY-Resolution: {EXIF:Y-Res} = 250
* if ToolsSettings...GeneralGeneralUse EXIF DPI (if exists) is deactivated, the value for {DPI} changes from 250 to 72 for both images.