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

Re: Image.toBlob()

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 2 Feb 2012 16:32:32 -0600
Message-ID: <CABirCh-7g4Boe9y3arKDXmJV+XRjTi3m0WfVrnnSdG83Av5sBg@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: public-webapps@w3.org
On Thu, Feb 2, 2012 at 4:24 PM, Anne van Kesteren <annevk@opera.com> wrote:

> On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka <
> Bronislav.Klucka@bauglir.com> wrote:
>
>> would it be possible to have Image.toBlob() function? We are introducing
>> Canvas.toBlob(), image (and maybe video, audio) would be nice addition
>>
>
> Are the additional resource required to drawing the image on <canvas>
> first a bottleneck?
>

As long as the canvas isn't inserted into a document (eg. it doesn't have
to be composited), I'd think browsers could optimize this case
transparently, without adding additional API (eg. avoid the backbuffer
allocation and surface copy).

-- 
Glenn Maynard
Received on Thursday, 2 February 2012 22:33:01 GMT

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