You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow an image to indicate its own density and correct its intrinsic size.
See https://discourse.wicg.io/t/proposal-exif-image-resolution-auto-and-from-image/4326/24
This proposal allows using EXIF or other metadata to determine an image's
default resolution, which may be different from the requested resolution
in srcset/image-set, or from the default of 1dppx.
The use-case is, for example, allowing serving low-density placeholder in poor
network conditions without affecting layout.
When an image indicates its intrinsic density-corrected size, that indication
is "stronger" than the requested density (current pixel density). This allows, for example, serving a regular 1x image when a 2x image is requested by srcset, allowing for correct presentation of content that contains that information.
The change to the HTML spec doesn't define exactly how an image format
would represent this metadata, which is aligned with how image orientation
from EXIF is defined in the CSS-images spec.
The WICG proposal defines that in detail - using size+resolution from EXIF
when their values are matching.
0 commit comments