<?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>226950</bug_id>
          
          <creation_ts>2021-06-11 23:47:35 -0700</creation_ts>
          <short_desc>Canvas (HTMLCanvasElement.toDataURL) can&apos;t export it&apos;s data to image/webp</short_desc>
          <delta_ts>2021-06-16 20:02:46 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Giordano">christian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1769187</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Giordano">christian</who>
    <bug_when>2021-06-11 23:47:35 -0700</bug_when>
    <thetext>While Chromium (and Chrome) supports it, in Safari when you try to export a canvas to image/webp it returns a png. You can try it here: https://codepen.io/nuthinking/pen/eYZBWLL

Let me know if you need anything else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1770372</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-06-16 13:51:49 -0700</bug_when>
    <thetext>To note: Firefox Nightly (currently 91) appears not to support image/webp either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1770505</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-06-16 19:03:03 -0700</bug_when>
    <thetext>This is because the underlying frameworks do not support WebP encoding. For internal reference see &lt;rdar://59404467&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1770512</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-06-16 20:02:46 -0700</bug_when>
    <thetext>&lt;rdar://59404467&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>