Bug
1664230 [wpt PR 25470] - Read image resolution from EXIF, apply to intrinsic size See https://github.com/whatwg/html/pull/5574, a=testonly
Automatic update from web-platform-tests
Read image resolution from EXIF, apply to intrinsic size
See https://github.com/whatwg/html/pull/5574
Currently applies to JPEG only.
Use the EXIF resolution/size information we read from the
JPEG image to determine a density-corrected preferred size,
which overrides the intrinsic size of the image.
We only apply this intrinsic size when an image has both
resolution and size information in its exif.
When asking an Image for display size, the preferred size
is returned, and the source rect for reading from the image
is scaled when applicable.
Added many WPT reference tests.
Bug:
1069755
Change-Id: I01a38c72bb46974a0c112175934cd3c2c48607a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
2292219
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817600}
--
wpt-commits:
a7ad0f20fa015d398e394a5cd69aedbc5e7dccb7
wpt-pr: 25470