DEV Community

Discussion on: Compress image in browser? Easy!

Collapse
 
rhymes profile image
rhymes

I wonder if this would be the perfect thing to delegate to WebAssembly, what do you think? It might become slow with big images (also it's going to happen in the calling thread, right?)

Collapse
 
qm3ster profile image
Mihail Malo

Definitely

Collapse
 
antonreshetov profile image
Anton Reshetov

Sadly, but i'am dummy in WebAssembly 😬 So I can't say anything about that.

Collapse
 
rhymes profile image
rhymes

Well, it's not like I'm an expert either. But we can learn things 😉

In the meantime you can test what happens to the function if you give it a truly massive image