Page 1 of 1

GIF compression/optimization

Posted: 2014-06-08T09:52:34-07:00
by lorents
Good afternoon!
Prompt how it is correct to optimize GIF without visible changes with the maximum compression?
For seodnyashny day I use the following binding

Code: Select all

convert -coalesce -layers Optimize -compress LZW -strip
or

Code: Select all

convert -layers Optimize -compress LZW -strip
as I understand, gifsicle by the opportunities strongly lags behind GIF

Re: GIF compression/optimization

Posted: 2014-06-08T10:42:34-07:00
by fmw42
You have not specified any input or output images.

I do not believe that gif offers any compression options other than reducing the number of colors. (-colors xx)

see http://www.imagemagick.org/Usage/formats/#gif

Re: GIF compression/optimization

Posted: 2014-06-08T11:25:21-07:00
by lorents
Not absolutely you understood, about optimization? explain please
I found very interesting file
http://www.imagemagick.org/Usage/anim_opt/

Re: GIF compression/optimization

Posted: 2014-06-08T11:43:10-07:00
by fmw42
My error. I see that gif does allow lzw compression. try

Code: Select all

convert animation.gif -strip -coalesce -layers Optimize newanimation.gif
The use gifsicle on the result.

Sorry I have no significant experience with optimizing gif animations.

Re: GIF compression/optimization

Posted: 2014-06-08T12:13:54-07:00
by lorents
Thanks!

How I understand, gifsicle significantly lags behind abilities of imagemagick?