Skip to content

Instantly share code, notes, and snippets.

@nothke
Created August 6, 2020 20:30
Show Gist options
  • Save nothke/319d95ae78ee77a0f1b618eae94a7db7 to your computer and use it in GitHub Desktop.
Save nothke/319d95ae78ee77a0f1b618eae94a7db7 to your computer and use it in GitHub Desktop.
  • gifcam records frames uncompressed, and it's a 32bit software, so you can easily run out of memory if you record a large piece of the screen for a long time. If that happens, it usually hangs and becomes unresponsive, and you need to stop the process, but sometimes it pings a warning, or just silently crashes.
  • To check how big your gif is, without saving the file, expand the menu beside Save > and click on Preview, after it's done compressing it will preview and show the size in the window title. This is important to know because there are gif upload limits everywhere, on Twitter it's 15MB, and on Discord it's 8MB (as of August 2020);
  • To reduce the size of the gif to fit in ^ those sizes, I usually try not to change a compression method (to something else than quantize, because it's almost always superior), but instead crop, trim or resize gifs.
  • Gifs ALWAYS have a one pixel wide black border (not sure why!?). You can actually remove it by just cropping the outside a bit in Edit > right click > Crop.
  • Use "Quantize" compression (the default one) most of the time, but especially if your gif doesn't change much from frame to frame. It's incredible how small gifs can be if you for example record windows UI where only a cursor may occasionally move. It works by storing the unchanged frames in a certain "green screen" color bit. But the problem is that if you have green (0, 255, 0) color in your gif, it will probably destroy your gif and produce weird green "infestation" effects. But, it is possible to select a different green screen color in Edit > right click > Green Screen > pick a different color. If your gif uses ALL the colors that can potentially be used as a green screen, well, you should probably pick a different compression;
  • If you have a lot of noise (such as when using post-process dithering or grain) in your gifs, the size of the gif will rise dramatically. You should consider using another compression besides quantize. Or remove the source of noise if you can (if you're a game developer for example).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment