W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Reading image bytes to a PNG in a typed array

From: Kyle Huey <me@kylehuey.com>
Date: Wed, 16 Jan 2013 04:29:36 -0800
Message-ID: <CAP045AomzyVUpyfM2S2ATRf0-Nm7uM_KY0NNQrhbGhFodeDDxg@mail.gmail.com>
To: Florian Bösch <pyalot@gmail.com>
Cc: Glenn Maynard <glenn@zewt.org>, Webapps WG <public-webapps@w3.org>
On Mon, Jan 14, 2013 at 7:04 AM, Florian Bösch <pyalot@gmail.com> wrote:

> On Mon, Jan 14, 2013 at 4:00 PM, Glenn Maynard <glenn@zewt.org> wrote:
>
>> You want toBlob, not toDataURL.
>>
> So how would I stick a blob into an arraybuffer?
>
>
I don't think there's any reason we can't have toArrayBuffer as well.  The
hard part from an implementation perspective is asynchronously encoding the
image, not what we stick it in.

- Kyle
Received on Wednesday, 16 January 2013 12:30:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT