Bug 237895 - createImageBitmap() from Blob loses exif orientation
Summary: createImageBitmap() from Blob loses exif orientation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-15 08:20 PDT by Andrew Swan
Modified: 2024-05-21 05:37 PDT (History)
5 users (show)

See Also:


Attachments
test case (2.54 KB, text/html)
2022-03-15 08:20 PDT, Andrew Swan
no flags Details
Safari vs Other browsers (237.98 KB, image/png)
2024-05-21 05:37 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Swan 2022-03-15 08:20:08 PDT
Created attachment 454708 [details]
test case

See attached test case -- this test uses a jpeg that contains an exif header indicating that the image should be rotated 90 degrees.  When displayed via an <img> tag the image shows up at the correct orientation, but when displayed by decoding with createImageBitmap() and then drawing the resulting image to a canvas, the image is not correctly rotated.
Although not covered by the test case, if an ImageBitmap is created with an ImageElement as the source, the orientation is handled correctly.
Comment 1 Radar WebKit Bug Importer 2022-03-16 05:42:20 PDT
<rdar://problem/90364952>
Comment 2 Ahmad Saleem 2024-05-21 05:37:15 PDT
Created attachment 471462 [details]
Safari vs Other browsers

It looks all browsers are rendering this same.