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

[whatwg] Rich Paste & DataTransfer / DataTransferItems API

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 14 Mar 2011 23:32:18 -0400
Message-ID: <AANLkTikS9kC3wgXdQyvd8rJ229uynE5iE_yP_Sx2QPzt@mail.gmail.com>
On Mon, Mar 14, 2011 at 11:19 PM, Daniel Cheng <dcheng at chromium.org> wrote:
> Isn't there an image resize API? IMO, that sounds like things that should
> handled by that API.

That's what Canvas itself is for.

In principle, it could optimize for Canvas use (uncompressed), and punt to
Canvas for a more complete compression interface.  That doesn't solve it
nicely right now, since there's not yet an API to get a Blob from Canvas
(there's only toDataURL), but that'd be a separate problem (and is needed
anyway, eventually).  I don't have a strong feeling for whether that's
actually a good idea or not.

Glenn Maynard
Received on Monday, 14 March 2011 20:32:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:31 UTC