Bug 212405 - Support density-corrected size from EXIF metadata
Summary: Support density-corrected size from EXIF metadata
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Noam Rosenthal
URL:
Keywords:
Depends on: 217821 217820
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-27 05:07 PDT by Noam Rosenthal
Modified: 2022-11-08 02:41 PST (History)
14 users (show)

See Also:


Attachments
Patch (35.95 KB, patch)
2020-07-20 06:35 PDT, Noam Rosenthal
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Noam Rosenthal 2020-05-27 05:07:03 PDT
A new proposal to the HTML spec, following lack of traction to Content-DPR: https://bugs.webkit.org/show_bug.cgi?id=145380

The proposal is to use 5 EXIF attributes (XDimension/YDimension/XResolution/YResolution/ResolutionUnit) to allow an image to declare its "intrinsic preferred size" and "intrinsic resolution" - and only if they match each other, affect its intrinsic (natural) size accordingly.

Creating this bug to follow progress, in parallel with a similar Chromium bug, and the proposals to HTML spec. 

WICG: https://discourse.wicg.io/t/proposal-exif-image-resolution-auto-and-from-image/4326/24
HTML spec proposal: https://github.com/whatwg/html/pull/5574
WPT: https://github.com/web-platform-tests/wpt/pull/23789
Chromium bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1069755
Comment 1 Noam Rosenthal 2020-07-20 06:35:18 PDT
Created attachment 404712 [details]
Patch
Comment 2 Noam Rosenthal 2020-07-20 06:36:50 PDT
(In reply to Noam Rosenthal from comment #1)
> Created attachment 404712 [details]
> Patch

Uploaded a dry-run patch. It contains most of the bits and pieces, but waiting for the security issue with image metadata to be resolved before continuing (https://github.com/w3c/csswg-drafts/issues/5165#)