De-Mystifying the feared file type — GIF with Nikhil Shrestha
![De-Mystifying the feared file type — GIF with Nikhil Shrestha](https://animatorsguild.com/wp-content/uploads/2024/07/gif-thumb.webp)
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.
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_6Ld0RpFKx6KDtSNJCe5f6Q.webp)
Animation by Nikhil Shrestha
![1_EKS1zHaj4Hq_KzT1gLTSXA](https://animatorsguild.com/wp-content/uploads/2024/07/1_EKS1zHaj4Hq_KzT1gLTSXA.gif)
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.
Lossy GIF with a compression level of about 80–100 should work fine.
![1_Hk5Pj11RTgtoDPLuLqzdtw](https://animatorsguild.com/wp-content/uploads/2024/07/1_Hk5Pj11RTgtoDPLuLqzdtw.webp)
![1_x0Bl88XM5CAXVfIxDnAY-Q](https://animatorsguild.com/wp-content/uploads/2024/07/1_x0Bl88XM5CAXVfIxDnAY-Q.webp)
![1_V5_YnoHYZwM-iBAiakQ4rg](https://animatorsguild.com/wp-content/uploads/2024/07/1_V5_YnoHYZwM-iBAiakQ4rg.gif)
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.
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_Sjsev8BroOypn6yMCVb7rQ.webp)
![1_ifWgTHd63Jk4mWkj6kmXDA](https://animatorsguild.com/wp-content/uploads/2024/07/1_ifWgTHd63Jk4mWkj6kmXDA.webp)
![1_EjC_39PJmEAFZcHx1KJnOw](https://animatorsguild.com/wp-content/uploads/2024/07/1_EjC_39PJmEAFZcHx1KJnOw.gif)
Motion Tools Pro — Optimised GIF 951KB
![1_dWbuXexSGHSJZZwT-YnVkA](https://animatorsguild.com/wp-content/uploads/2024/07/1_dWbuXexSGHSJZZwT-YnVkA.gif)
Motion Tools Pro — Not Optimised 4.23MB
Exploring the ‘Save for Web’ Option in Photoshop
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_-bdSAlpqrea2biPtsSAVNg.webp)
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
Transparency — Off
Colors — 256
Matte — None
Image Size — 262 x 147
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_F20kr5hC1oru9jQ2_xw0Zg.gif)
Adaptive
![1_ywGAJV56EZyJfSbkPpdiwQ](https://animatorsguild.com/wp-content/uploads/2024/07/1_ywGAJV56EZyJfSbkPpdiwQ.gif)
Perceptual
![1_faifLu6EFVsL8t-a6d0UNQ](https://animatorsguild.com/wp-content/uploads/2024/07/1_faifLu6EFVsL8t-a6d0UNQ.gif)
Restrictive
![1_3Y0JWczuZk2fe8RvYZ3V8A](https://animatorsguild.com/wp-content/uploads/2024/07/1_3Y0JWczuZk2fe8RvYZ3V8A.gif)
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_MVYy69SQhJyaV8J7dK10oA.gif)
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](https://animatorsguild.com/wp-content/uploads/2024/07/1_qg-ycwSRDGSu8_IvdIlrvQ.gif)
EZGIF
![1_2L8fO3trkxbUWylbkG5ymg](https://animatorsguild.com/wp-content/uploads/2024/07/1_2L8fO3trkxbUWylbkG5ymg.gif)
Perceptual Pattern 262 x 147px
Here are the file sizes for a 262 x 147px image,
![1_yVI2qijfYyJhIymD9MPuWQ](https://animatorsguild.com/wp-content/uploads/2024/07/1_yVI2qijfYyJhIymD9MPuWQ.webp)
Restrictive with No Dither had the smallest file size at 1.2MB
Adaptive with Noise was the heaviest file 4.8MB
![1_J0MpMY9STKTdj_4TQsy0UQ](https://animatorsguild.com/wp-content/uploads/2024/07/1_J0MpMY9STKTdj_4TQsy0UQ.gif)
Restrictive with No Dither
![1_58w4FaZ0QeJJX4KvXW18hA](https://animatorsguild.com/wp-content/uploads/2024/07/1_58w4FaZ0QeJJX4KvXW18hA.gif)
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