W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] "offscreen canvas" /Access to canvas functionality from a worker

From: Franz Buchinger <fbuchinger@gmail.com>
Date: Sat, 5 Dec 2009 13:24:36 +0100
Message-ID: <a07b86220912050424g7fbca502lc77be237cabc3a08@mail.gmail.com>
Gears introduced the concept of an "offscreen canvas" that doesn't draw
anything in the browser window, but can be used to manipulate images in a
web worker.

I used this functionality to implement a "resize-before-upload" feature in
my photo gallery uploader. Now I'm trying to port my uploader to HTML5 but
there seems no way to delegate the scaling work to a HTML5 web worker.
Surely I could use the DOM canvas to scale down the photos in the main
"browser thread", but this means that the UI gets blocked during this

If the user chooses more than a few multi-megapixel photos, the
CPU-intensive downscaling will likely freeze the browser and trigger a
script abortion warning.

Are there plans to introduce an "offscreen canvas" in html5? If not, which
workarounds are possible?

kind regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091205/dfc2b925/attachment-0001.htm>
Received on Saturday, 5 December 2009 04:24:36 UTC

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