Hello, you need to change the gif

ffmpeg -i 1.gif -vf scale=800:-1 -y 2.gif 

hyphal from the original 2mb turns into 8mb

The most interesting thing is that I decode both gifs in the hymn I save one frame at a time and one frame weighs under 100kb, only 75 frames, respectively, and it turns out in size ~ 8mb. I can not understand why the original gif weighs only 2 MB and how to achieve the same magic?

The same effect with convert and gifsicle

 convert 1.gif -resize '800x<' 2.gif gifsicle --resize-fit-width 800 -i 1.gif > 2.gif 
  • hyphae can only preserve diffs between frames. The picture is a lot unchanged - that's what happens. - KoVadim
  • Try the --optimize (-O2) option for gifsicle. Try to repack without resizing. - Monah Tuk
  • And yes, it looks like different compression options for LZW or use a palette for each frame instead of the global one. - Monah Tuk
  • I tried without changing the size and with --optimize, now it is 6mb, so all the same, what to do so that the size does not triple? - iormark
  • @iormark I rummaged in the source code, but I haven't figured it out yet. My last guess seems more realistic, especially in the light of patents and so on. Although the patents on hyphae seem to have expired. By the way, GraphicsMagic does not digest this gif at all. - Monah Tuk

0