-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow an image to indicate its own density and correct its intrinsic size #5574
Merged
Commits on Jun 27, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for 978645b - Browse repository at this point
Copy the full SHA 978645bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e4a01 - Browse repository at this point
Copy the full SHA 08e4a01View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0ff979 - Browse repository at this point
Copy the full SHA a0ff979View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c1e85e - Browse repository at this point
Copy the full SHA 9c1e85eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 873dfb5 - Browse repository at this point
Copy the full SHA 873dfb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f09870 - Browse repository at this point
Copy the full SHA 7f09870View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd6d4db - Browse repository at this point
Copy the full SHA cd6d4dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84fce1d - Browse repository at this point
Copy the full SHA 84fce1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71af446 - Browse repository at this point
Copy the full SHA 71af446View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc718c4 - Browse repository at this point
Copy the full SHA fc718c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00b5724 - Browse repository at this point
Copy the full SHA 00b5724View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5e047 - Browse repository at this point
Copy the full SHA 9f5e047View commit details -
Configuration menu - View commit details
-
Copy full SHA for 98ccb1d - Browse repository at this point
Copy the full SHA 98ccb1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 550cd15 - Browse repository at this point
Copy the full SHA 550cd15View commit details -
Configuration menu - View commit details
-
Copy full SHA for da9f571 - Browse repository at this point
Copy the full SHA da9f571View commit details
Commits on Jul 8, 2021
-
Fix wrong variable references (img does not exist at the call sites) …
…and other issues
Configuration menu - View commit details
-
Copy full SHA for 441ca72 - Browse repository at this point
Copy the full SHA 441ca72View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.