| Summary: | createImageBitmap() from Blob loses exif orientation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andrew Swan <aswan> | ||||||
| Component: | Images | Assignee: | 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: |
|
||||||||
Created attachment 471462 [details]
Safari vs Other browsers
It looks all browsers are rendering this same.
|
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.