<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>242137</bug_id>
          
          <creation_ts>2022-06-29 15:02:43 -0700</creation_ts>
          <short_desc>ImageBitmap -&gt; Canvas does not use EXIF orientation for images out of blobs</short_desc>
          <delta_ts>2022-06-29 23:51:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>Safari 15</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>223326</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Micah">micah.millereshleman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>heycam</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>micah.millereshleman</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1879134</commentid>
    <comment_count>0</comment_count>
    <who name="Micah">micah.millereshleman</who>
    <bug_when>2022-06-29 15:02:43 -0700</bug_when>
    <thetext>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 &amp; Firefox, the rendered images are identical. In Safari, the second (ImageBitmap -&gt; Canvas) image is improperly rotated if it contained EXIF data.

I&apos;m a bit confused b/c this issue was supposed to be resolved in 231063 and released into Safari 15.2, but I&apos;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)!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879279</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2022-06-29 23:51:59 -0700</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>