Veetaha / snowpity

Apache License 2.0
6 stars 1 forks source link

Send compressed version of the image if it doesn't fit into 10MB limit of telegram #25

Open Veetaha opened 1 year ago

Veetaha commented 1 year ago

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 🤞