WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
51652
Add canvas.toBlob
https://bugs.webkit.org/show_bug.cgi?id=51652
Summary
Add canvas.toBlob
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
Add attachment
proposed patch, testcase, etc.
noel gordon
Comment 1
2011-07-11 20:54:51 PDT
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
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
This API has been renamed to toBlob:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
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.
Top of Page
Format For Printing
XML
Clone This Bug