[whatwg] Image resize API proposal

Maciej Stachowiak mjs at apple.com
Thu May 20 17:48:35 PDT 2010

On May 20, 2010, at 1:00 PM, David Levin wrote:

> On Thu, May 20, 2010 at 11:30 AM, Maciej Stachowiak <mjs at apple.com> wrote:
> >
> > I'm not clear on why this API is needed. ... This API seems much less general than offscreen canvas, so it's subject to the same criticism and you can't even make the argument that it also serves other use cases.
> The criticism for the OffscreenCanvas was 
> 1. it made the core use case of image resizing rather complicated and
> 2. depending on the browser's implementation, there may be faster ways to do the image resizing than doing it on a worker.
> The net suggestion that "This supports the idea of specialized API..." -- http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-March/025590.html
> This is exactly what we are doing (and it addresses those criticisms).

Is the purpose of this API performance or convenience?

It seems like the proposed API is so specialized that it's only really useful to resize an image immediately before transferring it over the network in some way. Is that really so much more common than any other resizing that it needs a specialized convenience API?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100520/9ce843e9/attachment-0002.htm>

More information about the whatwg mailing list