Open tankerkiller125 opened 7 years ago
In 2021, Discourse implemented something like this using WebAssembly (https://blog.discourse.org/2021/07/faster-user-uploads-on-discourse-with-rust-webassembly-and-mozjpeg/). This approach is noteworthy because it compresses images on the client side, reducing server load.
I've researched the libraries available in 2023, and this one looks promising: https://github.com/kleisauke/wasm-vips.
Should allow for an option to use some sort of image optimization lib or tool so that websites can serve images faster with less bandwidth.