W3C home > Mailing lists > Public > public-canvas-api@w3.org > October to December 2010

Proposal: Add getBlob to the Canvas API referencing the File API

From: Charles Pritchard <chuck@jumis.com>
Date: Mon, 15 Nov 2010 09:58:11 -0800
Message-ID: <4CE174B3.6070603@jumis.com>
To: public-canvas-api@w3.org
Has this been discussed before?

getBlob, from the File Writer API, is now a viable alternative to using 
the toDataURL method for many Canvas use cases.
Currently, one must run toDataURL, pop off the data uri prefix, then 
push through atob and ArrayBuffer to get a Blob.
Adding ".getBlob(content type, optional options)" to the Canvas element 
would save those very unnecessary steps.
Received on Monday, 15 November 2010 17:58:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:31:51 UTC