Media optimisation server-side
disclaimer: my first git* issue ever so pls be patient.
It’s a feature request.
Users don’t usually care about uploading optimised content, and not every admin is savvy enough to set it up themself. Optimising media would help saving both admins’ drive space (especially for instances with lots of users) and users’ traffic and downloading time (especially for users with lots of follows). If it is possible to implement something like optipng and mozjpeg without compromizing on RAM/CPU load (so Pleroma can keep the “Raspberry Pi” promise), then I belive all uploaded media should be optimised server-side.
I think it would be good idea to keep lossy compression by default, with probably the option for lossless (either set up by user or only an admin). (alternative: lossy only, no configuration — it’s a social media software, not image gallery after all).
It seems Mastodon not only optimises all the media, but also scales images and video down to some maximum sizes and converts adio and video to lossy formats: media_attachment.rb