GIF compression/optimization

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lorents
Posts: 42
Joined: 2010-07-06T04:27:53-07:00
Authentication code: 8675308

GIF compression/optimization

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: GIF compression/optimization

Post 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
lorents
Posts: 42
Joined: 2010-07-06T04:27:53-07:00
Authentication code: 8675308

Re: GIF compression/optimization

Post by lorents »

Not absolutely you understood, about optimization? explain please
I found very interesting file
http://www.imagemagick.org/Usage/anim_opt/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: GIF compression/optimization

Post 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.
lorents
Posts: 42
Joined: 2010-07-06T04:27:53-07:00
Authentication code: 8675308

Re: GIF compression/optimization

Post by lorents »

Thanks!

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