Here at InVision, animated GIFs play a powerful part in our marketing and education. Heck, at one point in time, we even opted to use GIFs on our homepage instead of fancy code-based animations.
People always ask us how we make our GIFs, so we figured it was time to spill the beans.
Related: Creating seamless looping GIFs
1. The secret sauce
Here’s my dirty little secret: all my GIFs start as videos. I usually make them in ScreenFlow, which is also what I use for our product videos. It’s simple enough to learn quickly, but packs some pretty useful animation tools.
After I export the animation as a video file, I import it into Photoshop via File > Import > Video Frames As Layers.
2. Fewer colors = more fun
If you want amazing GIFs, you need to be really selective about your use of color. Not only will it play a huge part in your file size, but using less color lets you make longer, more involved GIFs that are still relatively small in file size. (For us, small is less than 1MB)“Want an amazing GIF? Be selective about your use of color.”
3. When possible, use motion blur
Programs like ScreenFlow and After Effects let you export your video with motion blur. This not only makes your animation look more professional, but it also helps you fudge things a bit if you have to drop frames from your GIF in Photoshop for the sake of file size.
4. Be (kind of) lazy
Imagine all of the other things I could have added to the GIF at the top of this post: little tooltips with usernames on them, a cursor clicking the plus button, hovering over the faces to unveil more tooltips and hover states. People don’t need to see everything to get the picture, so only show what you need to—your time and file size are limited.
Related: God, GIFs, and Google AI
Before you stress out about following all the tips below, just try exporting your GIF. If it’s a reasonable file size, good job! Keep doing what you’re doing. If it’s too big, try these tips out.
1. Drop duplicate frames
Your animation most likely pauses or rests at some point. If you look closely, you’ll notice that these moments contain a bunch of duplicate frames with a duration of 0.03 seconds. If there are 10 duplicate frames, delete 9 of them, and set the duration of that one frame to something longer, like 1 second.
If that doesn’t help, try re-importing your video, but this time select Limit To Every 2 Frames. It should reduce your file size significantly.
2. Cut down on colors
When you’re saving your GIF in Photoshop, you’ll see a “colors” drop-down menu on your right. Play around with this setting. Set it as low as possible without turning your GIF into a hunk of junk.
3. Tweak your lossy
If I’m being honest, I don’t even know what lossy means. But I do know that if you set it somewhere between 1 and 10, you’ll shave off some kilobytes without killing your quality.
(Psst, Andy. This is what lossy means. – Ed.)
None of this is working! Help!
If you’ve tried everything we’ve talked about but you still can’t seem to squash that GIF down, it’s time to take a step back. Are you trying to accomplish too much? Is there another way to achieve your goal? What if you broke it into a couple different GIFs? Like most creative products, your GIF will do better if it focuses on just one thing.
Bonus video: the super-fast making of
Head spinning? Here are some automatic GIF making tools
If all these tips have you feeling overwhelmed, give these options a try.
GIPHY GIF Maker (free)
You can keep your GIFs private if you have an account. Otherwise all your GIFs belong to GIPHY.
While it’s not as simple or easy on the eyes as GIPHY, EXGIF offer some extra controls and tools, like the ability to optimize an existing GIF by trying some of the techniques (dropped frames, fewer colors0 we talked about above.
GifBrewery 3.1 (free)
It’s a great free tool if you’re not as well-versed in Photoshop. You can’t beat free, and it gives you a (Mac) desktop solution for tweaking and altering GIFs to your precise specifications.
What did I miss?
Do you have a killer tip I should add to this post? Want to talk more about GIFs? Ping us at @InVisionApp.
Oh, and you’ll probably love these Game of Thrones GIFs by Eran Mendel.