News for hackers. Stuff that matters.
Re:Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likel... by eduo on Friday May 21, 2021 @03:32AM (#27231422)
"Optimized" in this sense meant that animated gifs can have a frame reference only three pixels of the original image. So an image of 300K with only small movement (think cinemagraphs) wouldn't be much larger.

This is a given for movie formats, but at the time the animated GIF came up it was revolutionary. I think the proper phrase should be "animated GIFs can be pretty optimized, taking into account how inefficient the algorithm is, when compared with other animation algorithms of the time".

I also think there's an interpretation that applies here: When you see an animated gif, even if it's a frame that changes three pixels and nothing else, internally the renderer may be expanding it into a full movie (that is, uncompressing each resulting "frame"). This usually makes GIFs (regardless of how large or small the GIF actually is) take much more memory than common sense would tell you.

Re:Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likel... by TomSwirly on Friday May 21, 2021 @06:00AM (#27232184)
That's "compressed," not "optimized".
Re:Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likel... by TazeTSchnitzel on Friday May 21, 2021 @07:31AM (#27232717)
GIF also uses a normal compression algorithm so saying “compressed” about frame deltas is unhelpful.
Re:Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likel... by machello13 on Friday May 21, 2021 @09:23AM (#27233665)
Isn't that just... optimizing for space?
Re:Animated GIF uses over 35GB RAM in Acorn on M1 Mac, likel... by galangalalgol on Friday May 21, 2021 @07:38AM (#27232765)
For an image codec I think of those as the same thing. What do you mean by optimized besides compression?