Bug 51652 - Add getBlob(in DOMString contentType)
: Add getBlob(in DOMString contentType)
Status: UNCONFIRMED
: WebKit
Canvas
: 528+ (Nightly build)
: PC Mac OS X 10.5
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-27 13:22 PST by
Modified: 2012-10-17 09:17 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 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.
------- Comment #2 From 2011-09-04 10:10:05 PST -------
Support for Canvas toBlob is likely to come from Chromium:
http://code.google.com/p/chromium/issues/detail?id=67587