Bug 237895

Summary: createImageBitmap() from Blob loses exif orientation
Product: WebKit Reporter: Andrew Swan <aswan>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, heycam, karlcow, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case
none
Safari vs Other browsers none

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.