kohler / gifsicle

Create, manipulate, and optimize GIF images and animations
http://www.lcdf.org/gifsicle/
GNU General Public License v2.0
3.79k stars 241 forks source link

Don't optimize file if result is bigger than input #180

Open Oondanomala opened 2 years ago

Oondanomala commented 2 years ago

When optimizing a gif, the result may be bigger than the input (there are already many issues about that) The program could check if the output is bigger than the input and not optimize the gif if it is, just like a lot of other image compressors do. Either an option to enable or disable this should probably be added too.

kohler commented 2 years ago

Feel free to submit a PR