Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 WICG proposal defines that in detail - using size+resolution from EXIF when their values are matching.
- Loading branch information