FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
177 stars 96 forks source link

Image Compression and Optimization #54

Open tankerkiller125 opened 7 years ago

tankerkiller125 commented 7 years ago

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.

rafaucau commented 1 year 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.