0.85: wrong dpi?

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

Moderators: XnTriq, helmut, xnview, Dreamer

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

0.85: wrong dpi?

Post 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?
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: 3976
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 0.85: wrong dpi?

Post 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...]
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.85: wrong dpi?

Post 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.
Post Reply