3 ms·
I’ve actually done this 10 years ago with HTML canvas - resizing images on client side before upload, to save bandwidth and speed everything up: https://github.
by josefrichter 5y ago
I’ve actually done this 10 years ago with HTML canvas - resizing images on client side before upload, to save bandwidth and speed everything up: https://github.com/josefrichter/resize https://github.com/josefrichter/resize
- zamber 5y agoThis uses WebAssembly so it can preserve PNG transparency for example, which the canvas method loses.
- josefrichter 5y agoyes of course, wasm is far superior. we are 10 years farther, after all. it just reminded me that the problem of resizing before upload exists for at least a decade, even solutions exist for at least a decade, yet it’s still rarely being solved. maybe it’s not the biggest problem, so devs focus on other stuff.