De-Mystifying the feared file type — GIF with Nikhil Shrestha

De-Mystifying the feared file type — GIF with Nikhil Shrestha
TURN YOUR MESMERISING GRADIENT-HEAVY ANIMATIONS INTO BEAUTIFUL GIFS
Ironically, please allow a few seconds for the GIFs to load on this page.
Remember,
Flat colours — Friend, Gradients & Lighting Effects — Foe
A small deterioration in the quality is inevitable, but don’t let this stop you from harnessing the power of a GIF!
Small File size = Faster Loading Times = Better Experience
The catch?
Shittier quality.
In my experience, the two best methods to export GIFs with small file sizes and decent quality have been via Photoshop or EZGif. Of late, the Motion Tools Pro Plugin (Free) has come out with a GIF exporter and I use that sometimes to export a quick GIF.
That being said, when I want more control, Photoshop or EZGif are my go-to methods.
1. Photoshop Pipeline
After Effects Animation > Export Image Sequence > Import Photoshop IMG Sequence > Export GIF > Optimize on EZGIF > Download
or
After Effects Animation > Export MP4 > Import MP4 in Photoshop > Export GIF > Optimize on EZGIF > Download
2. EZGif
Import MP4/ MOV into EZGif > Convert to GIF > Optimize with EZGIF > Save GIF
3. Motion Tools Plugin for After Effects
AE Animation>Motion Tool Pro (Free Plugin)> Add the Super GIF Script>Click the Cog Wheel>Export the GIF
Things to remember when exporting from
1. Photoshop:
GIF Length: Try not to exceed 8–12 seconds
Dimensions: Keep the export closest to the actual dimensions on screen
Frame Rate: 10 or 12 fps
Export Settings,
Alpha: Turn on “Transparency” if the GIF needs to be against any background.
Matte: Keep this on “None” if your GIF will be placed against a coloured/ complex background with many colours
Else click “Other” and add the background’s hexcode to prevent a halo around the artwork.
Looping Options: Choose the looping option as “Forever”, “Once” or “Other”.
1_6Ld0RpFKx6KDtSNJCe5f6Q
Animation by Nikhil Shrestha
1_EKS1zHaj4Hq_KzT1gLTSXA
Photoshop (MP4 to GIF) 2.41MB
2. EZGIF:
GIF Length: Try not to exceed 8–12 seconds; Lower Lengths will give lower file sizes
Dimensions: Keep the export closest to the actual dimensions on screen
Frame Rate: 10 or 12
For Optimization to further reduce the file size,
Lossy GIF with a compression level of about 80–100 should work fine.
1_Hk5Pj11RTgtoDPLuLqzdtw
1_x0Bl88XM5CAXVfIxDnAY-Q
1_V5_YnoHYZwM-iBAiakQ4rg
EZGIF 2.33MB
3. Motion Tools Pro Plugin (Free)
This one is by far the simplest and fastest, set custom width, FPS and quality — then select your destination folder and export!/
I’d say this method is the fastest, no-nonsense way to export a GIF and it even outputs an Optimised GIF along with a full-size GIF by default, but it’s not always the best option since you can’t control the output too much.
PS — if you don’t see the option to export gifs,
Click the plus button on a space in the MTP plugin (you’ll see a button appear on hover) followed by a layout menu. Check the ‘Super Gif’ option to add the button to the main layout.
1_Sjsev8BroOypn6yMCVb7rQ
1_ifWgTHd63Jk4mWkj6kmXDA
1_EjC_39PJmEAFZcHx1KJnOw
Motion Tools Pro — Optimised GIF 951KB
1_dWbuXexSGHSJZZwT-YnVkA
Motion Tools Pro — Not Optimised 4.23MB
Exploring the ‘Save for Web’ Option in Photoshop

Big thanks to Graison Varghese who provided this mesmerising gradient-heavy animation to test out various GIF settings for this article.

Experiment, Process, Outcome
What do all the different options in the Photoshop ‘Export for Web’ menu do for exporting GIFs? It’s daunting, I know.
1_-bdSAlpqrea2biPtsSAVNg
Animation by Graison Varghese
Here is how I went about the experiment —
The source clip was 8 seconds long and 23.6MB
These export settings were kept constant -
Transparency — Off
Colors — 256
Matte — None
Image Size — 262 x 147
I cycled through the different color-reduction algorithms combined with dithering options to compare the results.
I tried a combination of each colour optimization with each dithering option and got a total of 16 outputs.
1_F20kr5hC1oru9jQ2_xw0Zg
Adaptive
1_ywGAJV56EZyJfSbkPpdiwQ
Perceptual
1_faifLu6EFVsL8t-a6d0UNQ
Restrictive
1_3Y0JWczuZk2fe8RvYZ3V8A
Selective
Here are my findings:
I visually checked these to figure out which option looked the best — for me that option was Perceptual Pattern.
1_MVYy69SQhJyaV8J7dK10oA
Perceptual — Pattern 600 x 388px
IMO this was the best result that I got from Photoshop — here it is below compared to the result I got with EZGIF
1_qg-ycwSRDGSu8_IvdIlrvQ
EZGIF
1_2L8fO3trkxbUWylbkG5ymg
Perceptual Pattern 262 x 147px
Here are the file sizes for a 262 x 147px image,
1_yVI2qijfYyJhIymD9MPuWQ
Restrictive with No Dither had the smallest file size at 1.2MB
Adaptive with Noise was the heaviest file 4.8MB
1_J0MpMY9STKTdj_4TQsy0UQ
Restrictive with No Dither
1_58w4FaZ0QeJJX4KvXW18hA
Adaptive with Noise
The file sizes between Adaptive, Selective and Perceptual were almost the same. Visually, I didn’t catch any evident differences between them.
The process of rendering a GIF can get tricky and troublesome fairly quickly, I hope this article gives you a little insight on how to go about working with this file type to reduce your trial-and-error approach.
Thanks for reading this far, cheers!
Additional Resources