If the image is more than 10MB, we currently send it as a file. However, we should compress it to make it under 10MBs (related issue
for GIFs: https://github.com/Veetaha/snowpity/issues/18).
Note that for derpibooru we may have a shortcut (if it really makes sense computation-time-spends-wise). They provide different representations of the image compressed and resized with different levels of minimization. We may use that or use some tool to compress the image for us. ffmpeg should cope with that I guess, but we may use some rust crate. I want to belive Rust is more mature with image processing than video processing 🤞
If the image is more than 10MB, we currently send it as a file. However, we should compress it to make it under 10MBs (related issue for GIFs: https://github.com/Veetaha/snowpity/issues/18).
Note that for derpibooru we may have a shortcut (if it really makes sense computation-time-spends-wise). They provide different representations of the image compressed and resized with different levels of minimization. We may use that or use some tool to compress the image for us.
ffmpeg
should cope with that I guess, but we may use some rust crate. I want to belive Rust is more mature with image processing than video processing 🤞