Bug 51652

Summary: Add canvas.toBlob
Product: WebKit Reporter: Charles Pritchard <chuck>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: annevk, ap, bugmail, cdumez, dino, ericbidelman, kangax, mdelaney7, noel.gordon, rniwa, syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Charles Pritchard
Reported 2010-12-27 13:22:46 PST
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.
Attachments
Charles Pritchard
Comment 2 2011-09-04 10:10:05 PDT
Support for Canvas toBlob is likely to come from Chromium: http://code.google.com/p/chromium/issues/detail?id=67587
Ryosuke Niwa
Comment 3 2017-02-16 20:47:47 PST
Anne van Kesteren
Comment 4 2023-08-23 00:42:39 PDT
This was added at some point.
Note You need to log in before you can comment on or make changes to this bug.