How to compress GIF animations? For example by reducing the color index.
The files are generated using Imagemagick but optimization seems complicated.
For example, the following animation is 864KB at 150x119:
To be used on a Linux machine.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
gifsicle -i anim.gif -O3 --colors 256 -o anim-opt.gif
This will optimize and reduce to 256 colors, if the animation uses more colors (the example image does).
You can reduce the size by reducing the number of colors:
Based on another Q&A.