Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

Reducing Animated GIF File Size from Video

Explorer ,
Sep 06, 2023 Sep 06, 2023

I have an .mov video file (790+MB) that I want to convert to an animated GIF for the web. I open the video file in Photoshop and then Save for Web as a GIF. The file size is still huge (20+MB). Any suggestions on how to get the file size much smaller for the web?

TOPICS
macOS
25.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 06, 2023 Sep 06, 2023

You might find it difficult or impossible to get that GIF file size down as far as you want. The type of compression GIF uses is not efficient for the frame sizes and durations of today’s HD-class videos. Animated GIF was designed for very small animations around 30 years ago, when full size desktop computer screens were around 640 x 480 pixels (or 1024 x 768 pixels if you had a lot of money).  

 

I have opened a 1920 x 1080 px video into Save for Web. Even after I set the output size to 980 x 5

...
Translate
Adobe
Community Expert ,
Sep 06, 2023 Sep 06, 2023

GIFs tend to be much bigger than videos (especially MP4) so there's not a lot you can do unless you make the gif smaller and reduce number of colours.

What's the resolution of the video?

 

Adobe Community Expert
Adobe Certified Professional
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 06, 2023 Sep 06, 2023

The resolution is 72.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2023 Sep 06, 2023

Video does not have a ppi resolution (ppi is a print control - literally how many pixels will the printer put in 1 inch of paper). All that matters for video (GIF included) is the image pixel dimensions i.e. how many pixels wide, how many pixels high. Can you tell us that for your video?

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 06, 2023 Sep 06, 2023

The animated GIF needs to be 980x500, which is what the video is sized at.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2023 Sep 06, 2023

How many frames?  - and have you adjusted the optimisation controls (which effectively control the colour pallete and dither settings). If you use Save for Web you can get a view on what those settings are doing to the file size.

 

Dave

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2023 Sep 06, 2023

Depending on what is in your video, you could try reducing number of colours in your gif using Save for Web...

  

Adobe Community Expert
Adobe Certified Professional
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2023 Sep 06, 2023

How long is your video (gif when you export)?

If it's a long video, at this resolution, 20MB is quite normal I would say

  

Adobe Community Expert
Adobe Certified Professional
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 06, 2023 Sep 06, 2023

You might find it difficult or impossible to get that GIF file size down as far as you want. The type of compression GIF uses is not efficient for the frame sizes and durations of today’s HD-class videos. Animated GIF was designed for very small animations around 30 years ago, when full size desktop computer screens were around 640 x 480 pixels (or 1024 x 768 pixels if you had a lot of money).  

 

I have opened a 1920 x 1080 px video into Save for Web. Even after I set the output size to 980 x 500 using my favorite settings (balance between quality and file size), the estimated file size is one third larger than the efficiently compressed original H.264 video.

 

Because animated GIF compression is so bad and outdated, the usual strategies for cutting down the file size are: 

  • Lower the frame pixel dimensions as far as you can stand. This might not an option for you if the GIF must be delivered at 980 x 500 px. 
  • Lower the frame rate as far as you can stand. 
  • Shorten the duration as much as you can. 
  • Use a design with as few colors as possible, because a GIF color palette cannot contain more than 256 colors. More colors require dithering, with makes file size compression much less effective. 
  • Minimize the number of pixels that change between frames. The worst case scenarios that prevent file size reduction are camera moves, busy frames where everything moves (e,g, crowd of people), and full frame effects/transitions (e.g., crossfade), because they make every pixel change between frames. 

You might not be able to do the last three options if you are required to work with the exact video you were given.

 

Options for exporting animated GIF from Creative Cloud applications include Adobe Photoshop (Save As and Save for Web offer different GIF export code and options, both not ideal), Premiere Pro, After Effects, Adobe Media Encoder, and Adobe Express. Most of those have almost no options, so if the GIF file size is too large, you can’t change it by much. Save for Web (Legacy) in Photoshop does provide the most options with the most chance of reducing file size, but getting it right is tedious and still limited.

 

If you need more GIF file size reduction than you can get out of Adobe software, you may need to try something like Gifski (free software), available for Mac, Windows, or Linux. It uses a different approach to GIF color that is capable of much smaller file sizes and better-looking color, with less work than anything else I’ve tried. But you still might not get the animated GIF version to be smaller than the H.264 video file it was originally, or at least not without losing image quality.

 

In fact, if there is any way to include the video in H.264 (or a similarly modern) format instead of animated GIF on whatever website or app it’s going to, that would be a far better, higher quality, and smaller file size solution than old animated GIF.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2023 Sep 11, 2023
LATEST

Exactly. As you say 😉

  

Adobe Community Expert
Adobe Certified Professional
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines