developertools.tech icon indicating copy to clipboard operation
developertools.tech copied to clipboard

[Discussion]: Can we leverage WASM to improve the image tool?

Open dlford opened this issue 3 years ago • 6 comments

I think we can, but I'm not entirely sure, hoping someone with more experience in WASM than myself can chime in.

dlford avatar Oct 11 '22 21:10 dlford

You definitely can. There is a WASM port of ImageMagick available, and libsquoosh which powers squoosh.app. Squoosh has good support for AVIF #44 😉

gaston-flores avatar Oct 11 '22 23:10 gaston-flores

Ouch, about Squoosh, it seems web support is not quite there yet 😢 GoogleChromeLabs/squoosh#1084

gaston-flores avatar Oct 11 '22 23:10 gaston-flores

@gaston-flores fantastic! No worries about Squoosh, looks like ImageMagick supports avif, so I would presume the WASM port does as well 🤞

dlford avatar Oct 11 '22 23:10 dlford

Ah, just kidding, no avif - https://cancerberosgx.github.io/demos/WASM-ImageMagick/supported-formats/

dlford avatar Oct 11 '22 23:10 dlford

Damn 😂 Sharp is also working on WASM support here lovell/sharp#3336, so maybe we just need to wait 🤞

gaston-flores avatar Oct 12 '22 00:10 gaston-flores

@gaston-flores I think you're right, it's just not out there yet, I'll keep this open in the mean time though. Thanks for the info!

dlford avatar Oct 12 '22 00:10 dlford