Bug 242137 - ImageBitmap -> Canvas does not use EXIF orientation for images out of blobs
Summary: ImageBitmap -> Canvas does not use EXIF orientation for images out of blobs
Status: RESOLVED DUPLICATE of bug 223326
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 15
Hardware: Mac (Apple Silicon) macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-29 15:02 PDT by Micah
Modified: 2022-06-29 23:51 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Micah 2022-06-29 15:02:43 PDT
When Safari renders ImageBitmap to Canvas (via drawImage), EXIF orientation is not taken into account.

Reduced test case:
https://codepen.io/pranksinatra/pen/JjRWVXz

In Chrome & Firefox, the rendered images are identical. In Safari, the second (ImageBitmap -> Canvas) image is improperly rotated if it contained EXIF data.

I'm a bit confused b/c this issue was supposed to be resolved in 231063 and released into Safari 15.2, but I'm replicating this on Safari 15.5
https://bugs.webkit.org/show_bug.cgi?id=231063#c16

Thanks for looking into it Cameron McCormack (:heycam)!
Comment 1 Kimmo Kinnunen 2022-06-29 23:51:59 PDT
Note: this is a bug with ImageBitmap out of a blob.

Test pending in bug 242169

The bug is fixed in bug 223326

*** This bug has been marked as a duplicate of bug 223326 ***