Page 1 of 1

Resize animated gif to certain filesize

Posted: 2014-12-22T05:55:17-07:00
by Marcel71
Hi All,

I found that you can resize a jpg file to a maximum file size by:

Code: Select all

convert image -define jpeg:extent=512kb newimage.jpg
Is there also such a function for animated gifs?

Re: Resize animated gif to certain filesize

Posted: 2014-12-22T07:01:59-07:00
by Marcel71
Okay, after some research (and looked at Fred's scripts) i see it can only be done with trial and error. :(

Re: Resize animated gif to certain filesize

Posted: 2014-12-22T07:07:45-07:00
by snibgo
JPEG files have a trade-off between image quality and file size. For animation, some formats (such as MPG) also have this trade-off. GIF does not.