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
Created attachment 404712 [details] Patch
(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#)