0.85: wrong dpi?

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
phaolo
Posts: 69
Joined: Tue Dec 29, 2015 11:40 pm

0.85: wrong dpi?

Post by phaolo » Tue May 16, 2017 2:11 pm

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?
Attachments
kilartdev- witch AS.jpg
kilartdev- witch DA.jpg
Last edited by phaolo on Fri May 19, 2017 12:06 am, edited 1 time in total.

cday
XnThusiast
Posts: 2138
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 0.85: wrong dpi?

Post by cday » Tue May 16, 2017 2:57 pm

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...]

User avatar
XnTriq
Moderator & Librarian
Posts: 5434
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.85: wrong dpi?

Post by XnTriq » Wed May 17, 2017 12:15 am

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.

Post Reply