NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.53k stars 2.17k forks source link

Automate reaching the perfect gif size ratio with a setting. #802

Open alvivar opened 3 years ago

alvivar commented 3 years ago

I love this software, big thank you, it's the best.

Every time I make a gif, I'm looking for the bigger width / height possible without exceeding 5 MB. This way I can share it on forums and social networks with that limitation, while getting the best size, it's a fight between changing sizes and creating the gif lots of times.

I would like to contribute with the code to achieve this setting. I make lots of gifs and this is probably the most time consuming part of my ritual.

All suggestions, ideas or guidance are welcome!

NickeManarin commented 3 years ago

I'm glad that you love it :)

Without encoding the file in the background, I don't see a way to predict the file size.

as3mbus commented 3 years ago

+1 on this feature

from my basic software understanding. i would try to estimate based on recorded image stored in memory from application. and :

a. dig deeper into encoding software lib to find any estimation (if any) b. make use of data size, options configuration informations as datasets and use it for machine learning to estimate file size. can either be served online or offline (but it will make the software much slower which we dont want)

just want to add that this software help me a lot in many situation. and really grateful for it :)