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

[whatwg] Feature proposal - add method to CanvasRenderingContext2D

From: František Řezáč <frantisek.rezac@calavera.info>
Date: Wed, 3 Mar 2010 14:08:39 +0100
Message-ID: <17fcfe911003030508t39f74dfdyb5566b5ba15f7b49@mail.gmail.com>
the subject says it all. Details follows.

add overload of (or add similarly called) method "createImageData" to
interface CanvasRenderingContext2D which would take two arguments:
- encodedImageBinaryData
- dataMimeType
which are rather self explanatory.

The reason is to be able to supply output of the future File API
standard (http://www.w3.org/TR/FileAPI/) into canvas.

Use case
Usually there is a lot of image processing during image upload. This
processing takes place at the server and it can consume a lot of
system resources. The method I propose would enable basic client side
image processing by loading image to canvas tag. Then the modified
image could be sent to server instead of the original one. This would
save a lot of server's resources and sometimes even a lot of

Another possibilities
There are already solutions for this use case, but they are based on
technologies like Flash or Silverlight. With this proposal, no plugin
would be needed.

Franti?ek ?ez??
Prague, Czech Republic
Received on Wednesday, 3 March 2010 05:08:39 UTC

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