DEV Community

Discussion on: Client-Side Image Compression on the Web

Collapse
 
k776 profile image
Kieran Pilkington • Edited

I guess this would be a good use case for a lazily loaded WebAssembly module then. Make (or use an existing) Lanczos compression WASM module, load it on the page when the user begins selecting the file, when file is selected, pass in the image binary to the WASM function, and use the compressed result.