GIF uses transparency to overlay a frame over the previous one, so colors for the unchanged pixels can be collapsed to the transparent color to get better compression.
Of course, this is rather primitive compared to anything invented since MPEG-2.
I think they can be a little more complex than that. When creating a GIF in GIMP, there is a function to “Optimize” which gets rid of redundant pixels that are the exact same on multiple frames (or something like that). Whatever it does, it definitely reduces the final file size. Any time I make an animation that has to be a GIF file for whatever reason, I try to make it in GIMP to make use of that feature.
Aren’t gifs just each individual frame bundled together? So there’s no space saving with a gif without reducing resolution
GIF uses transparency to overlay a frame over the previous one, so colors for the unchanged pixels can be collapsed to the transparent color to get better compression.
Of course, this is rather primitive compared to anything invented since MPEG-2.
Huh the more you know
Always thought gif was essentially implemented as a slideshow and that modern codecs implement all the space saving that gif doesn’t
I think they can be a little more complex than that. When creating a GIF in GIMP, there is a function to “Optimize” which gets rid of redundant pixels that are the exact same on multiple frames (or something like that). Whatever it does, it definitely reduces the final file size. Any time I make an animation that has to be a GIF file for whatever reason, I try to make it in GIMP to make use of that feature.
https://docs.gimp.org/3.0/en/plug-in-optimize.html