- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Fri, 27 Sep 2013 17:45:15 +1200
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: WHAT Working Group <whatwg@whatwg.org>, Benjamin Smedberg <benjamin@smedbergs.us>
On Fri, Sep 27, 2013 at 5:29 PM, Jonas Sicking <jonas@sicking.cc> wrote: > The most requested ability is to resize images to a particular > resolution. This is something that can be done using canvas, but not > for videos or animated images. And currently you can't do it off the > main thread, which is an issue for larger images. > You can actually. You can draw the image to an offscreen <canvas>, scaling it, and then call toBlob() on the canvas, which is async. Nothing forces the image drawing and scaling part of that process to be sync. Rob -- Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt wyeonut thoo mken.o w * *
Received on Friday, 27 September 2013 05:45:40 UTC