NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.53k stars 2.17k forks source link

How to generate small sizes and compression best practices #299

Open ridhwaans opened 6 years ago

ridhwaans commented 6 years ago

When I make ~30s clips, the average size for Gifs tends to be from 50Mb to as high as 120Mb. Is there a strategy to allow for small size / compressed gifs? < 30 Mb?

NickeManarin commented 6 years ago

Less changes between frames, smaller frame size.

If you can't do that, I recommend switching to video, such as mp4.

vatterspun commented 6 years ago

A few tricks:

  1. Try "reduce frame count"
  2. Manually delete excess frames
  3. Crop the image to as small a view as possible
vatterspun commented 6 years ago

A few other tricks:

  1. Color reduction (see Color Limiter #317 thread), starting at 128, and then trying 64 and 32 colors to see what creates the smallest file.
  2. Reduce the overall size of the GIF using tools like ImgOps.com, Gif Resizer (http://www.ashongsoft.com/product/gif-resizer.html) or Leapic Gif Optimizer (http://www.leapic.com/free-gif-optimizer.htm), probably starting with 90%, and then less by 10% increments.
  3. Lossless GIF compression tools like FileOptimizer