Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Use Exif orientation when creating ImageBitmap from Blob
https://bugs.webkit.org/show_bug.cgi?id=223326 Reviewed by Kenneth Russell and Kimmo Kinnunen. Do not ignore embedded Exif orientation metadata when creating ImageBitmap from Blob. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/imagebitmap-replication-exif-orientation-expected.txt: * Source/WebCore/html/ImageBitmap.cpp: (WebCore::ImageBitmap::createFromBuffer): Canonical link: https://commits.webkit.org/253004@main
- Loading branch information
1 parent
a91bb4a
commit 8758b1b
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...l/canvas/element/manual/imagebitmap/imagebitmap-replication-exif-orientation-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
|
||
FAIL ImageBitmap from file with EXIF rotation, duplicated via structuredClone assert_array_approx_equals: Pixel value at (40,40) 255,0,0,255 =~ 0,0,0,255. property 0, expected 255 +/- 1, expected 255 but got 0 | ||
PASS ImageBitmap from file with EXIF rotation, duplicated via structuredClone | ||
PASS ImageBitmap from file with EXIF rotation, loaded via <img> | ||
PASS ImageBitmap from file with EXIF rotation, loaded via <img> not in DOM, imageOrientation = none | ||
FAIL ImageBitmap from file with EXIF rotation, loaded via <img> in DOM, imageOrientation = none assert_equals: Bitmap width expected 320 but got 160 | ||
FAIL ImageBitmap from file with EXIF rotation, duplicated via createImageBitmap assert_array_approx_equals: Pixel value at (40,40) 255,0,0,255 =~ 0,0,0,255. property 0, expected 255 +/- 1, expected 255 but got 0 | ||
FAIL ImageBitmap from file with EXIF rotation, duplicated via worker serialization round-trip assert_array_approx_equals: Pixel value at (40,40) 255,0,0,255 =~ 0,0,0,255. property 0, expected 255 +/- 1, expected 255 but got 0 | ||
FAIL ImageBitmap from file with EXIF rotation, duplicated via worker transfer round-trip assert_array_approx_equals: Pixel value at (40,40) 255,0,0,255 =~ 0,0,0,255. property 0, expected 255 +/- 1, expected 255 but got 0 | ||
PASS ImageBitmap from file with EXIF rotation, duplicated via createImageBitmap | ||
PASS ImageBitmap from file with EXIF rotation, duplicated via worker serialization round-trip | ||
PASS ImageBitmap from file with EXIF rotation, duplicated via worker transfer round-trip | ||
FAIL ImageBitmap from file with EXIF rotation, duplicated via worker transfer round-trip, while referenced by a CanvasPattern promise_test: Unhandled rejection with value: object "TypeError: Type error" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters