Optimizing .gif image sizes?


Question

What can I try to make my animted .gif image smaller? It was created in adobe flash and converted into .gif after, however it's still way too big, it's 3mb and I need it under 1mb. What can I try?

1
1
12/22/2011 6:06:00 PM

Accepted Answer

You can:

  • reduce the image size (fewer pixels = smaller file)
  • reduce the frames in the animation
  • reduce the color pallet further
  • posterize the images (larger flatter areas of color compress better for GIFs)
  • Use software that can add additional compression techniques (IIRC, Fireworks is good for this)
3
12/22/2011 6:54:00 PM

Reducing image size and number of frames will be most effective by far.

GIF can encode only difference between frames, so you can also try to reduce size of the area of the image that changes, i.e. have as much unchanged/non-moving background as you can (pixels must remain completely identical between frames, even slight temporal noise will still take space in the file).

And finally, optimize the file with gifsicle (GUI).

edit: I've created lossy gif compressor: https://kornel.ski/lossygif and added it as an option to ImageOptim. Usually it reduces GIF sizes by 50%.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
^