W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2015

Re: [whatwg] Canvas image to blob/dataurl within Worker

From: Justin Novosad <junov@google.com>
Date: Wed, 25 Mar 2015 16:43:27 -0400
Message-ID: <CABpaAqQA5s+WHRyoG5XTjbgGrFxSgno4gSYBQZojM9V_5OxHCA@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: Ian Hickson <ian@hixie.ch>, Kenneth Russell <kbr@google.com>, Jake Archibald <jaffathecake@gmail.com>, WHATWG <whatwg@whatwg.org>
On Wed, Mar 25, 2015 at 4:28 PM, Robert O'Callahan <robert@ocallahan.org>
wrote:

> On Thu, Mar 26, 2015 at 8:40 AM, Justin Novosad <junov@google.com> wrote:
>
>>
>> Eliminating the transit through canvas also
>> allows for fast paths for capturing blobs from <video>, <img>, svg, URLs,
>> to name a few.
>>
>
> With new APIs on those elements, you mean?
>

Not necessarily. I meant like this:

createImageBitmap(myImageSource).then(function (image) {
image.toBlob().then(admireYourShinyNewBlob); });
Received on Wednesday, 25 March 2015 20:43:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:29 UTC