<?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>51652</bug_id>
          
          <creation_ts>2010-12-27 13:22:46 -0800</creation_ts>
          <short_desc>Add canvas.toBlob</short_desc>
          <delta_ts>2023-08-23 00:42:39 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>0</everconfirmed>
          <reporter name="Charles Pritchard">chuck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>bugmail</cc>
    
    <cc>cdumez</cc>
    
    <cc>dino</cc>
    
    <cc>ericbidelman</cc>
    
    <cc>kangax</cc>
    
    <cc>mdelaney7</cc>
    
    <cc>noel.gordon</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>327103</commentid>
    <comment_count>0</comment_count>
    <who name="Charles Pritchard">chuck</who>
    <bug_when>2010-12-27 13:22:46 -0800</bug_when>
    <thetext>Using the same semantics as toDataURL (image/png is the default output), add Blob getBlob([Optional] in DOMString contentType, [Optional] args...).

Currently, an image must be copied to a string using toDataURL, then to an array buffer using base64 decoding, before it can be run through createObjectURL. getBlob would reduce the number of operations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>435465</commentid>
    <comment_count>1</comment_count>
    <who name="noel gordon">noel.gordon</who>
    <bug_when>2011-07-11 20:54:51 -0700</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-toblob
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-April/031243.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461955</commentid>
    <comment_count>2</comment_count>
    <who name="Charles Pritchard">chuck</who>
    <bug_when>2011-09-04 10:10:05 -0700</bug_when>
    <thetext>Support for Canvas toBlob is likely to come from Chromium:
http://code.google.com/p/chromium/issues/detail?id=67587</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1278098</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2017-02-16 20:47:47 -0800</bug_when>
    <thetext>This API has been renamed to toBlob: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972923</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-23 00:42:39 -0700</bug_when>
    <thetext>This was added at some point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>