[whatwg] Feature proposal - add method to CanvasRenderingContext2D
frantisek.rezac at calavera.info
Wed Mar 3 05:08:39 PST 2010
the subject says it all. Details follows.
add overload of (or add similarly called) method "createImageData" to
interface CanvasRenderingContext2D which would take two arguments:
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.
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
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.
Prague, Czech Republic
More information about the whatwg