[Webkit-unassigned] [Bug 209849] New: canvas.drawImage incorrectly respect EXIF orientation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 1 02:41:39 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=209849

            Bug ID: 209849
           Summary: canvas.drawImage incorrectly respect EXIF orientation
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
               URL: https://codesandbox.io/s/safari-canvas-exif-bug-m3u2w
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: renchap at gmail.com
                CC: dino at apple.com, sabouhallawa at apple.com

When you draw an image with EXIF orientation tags on a Canvas, the image is always drawn according to the EXIF orientation tags, even with `imageOrientation="none"`.

Reproduction URL: https://codesandbox.io/s/safari-canvas-exif-bug-m3u2w

Expected : both images are displayed upside-down (EXIF rotation 3, image-orientation disabled).
On Safari 13.1 (and TP), the bottom image (canvas) is not upside-down, as EXIF orientation was taken into account

Other browsers (and Safari before 13.1?) do not show this behaviour even if they support image-orientation: from-image.

A test should also be added to ensure the image is drawn upside down when not adding the <img> element to the DOM (comment line 6) to get the same behaviour as other browsers.


I suspect it comes from https://trac.webkit.org/changeset/254841/webkit/ so I cc-ed Said.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200401/4af9f015/attachment-0001.htm>


More information about the webkit-unassigned mailing list