<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>227943</bug_id>
          
          <creation_ts>2021-07-13 23:53:59 -0700</creation_ts>
          <short_desc>EXIF resolution information not applied</short_desc>
          <delta_ts>2021-07-20 23:54:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Portis">e</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1776891</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Portis">e</who>
    <bug_when>2021-07-13 23:53:59 -0700</bug_when>
    <thetext>https://cdpn.io/eeeps/debug/LYyRVOR

The third image on this page should have an intrinsic size of 1920 x 1280, from its EXIF information. Instead, it has an intrinsic size of 864 x 576.

It displays as expected in both Chrome 91 and Firefox 90. Safari passes the relevant Web Platform Tests (https://wpt.fyi/results/density-size-correction?label=master&amp;label=stable&amp;aligned), so there must be an issue with this particular image.

Tested on:
Safari Version 14.1 (16611.1.21.161.3)
Safari Technology Preview Release 127 (Safari 15.0, WebKit 16612.1.18.11.3)
macOS Big Sur 11.3 (20E232)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777406</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-07-15 18:43:35 -0700</bug_when>
    <thetext>Firefox and Safari match for me. Chrome shows the image larger.

The image EXIF has a DPI of 32.4 pixels per inch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777652</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Portis">e</who>
    <bug_when>2021-07-16 16:49:23 -0700</bug_when>
    <thetext>@smfr:

Make sure you test in Firefox 90, which is fairly new and also the first version to ship support for EXIF-based intrinsic sizing. In v90, the third image appears large (as expected), for me.

Re: the DPI, a couple of notes...

- Binary EXIF stores `XResolution` and `YResolution` as rationals, hence 162/5 in the exiftool code. (A happy side effect of this is perfect precision.) exiftool prints decimals when it reports, though.
- The default values, according to the EXIF spec, are 72 dpi, so 32.4 is equivalent to 0.45x/ddpx, in terms of HTML/CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1777654</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Portis">e</who>
    <bug_when>2021-07-16 16:50:55 -0700</bug_when>
    <thetext>s/ddpx/dppx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778366</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-20 23:54:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/80881733&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>