6 ms·
> Each frame of video is included in the file. There is a trick where subsequent frames use transparency for non-changed parts of the image which gives a much
by jacquesm 7y ago
> Each frame of video is included in the file.
There is a trick where subsequent frames use transparency for non-changed parts of the image which gives a much better compression ratio than you might think.
- leeoniya 7y agothis works well if you have a static background and a moving sprite. no so much if your background moves (or video).
- PavlovsCat 7y agoThe animated gifs that were everwhere generally were pixel animations rather than video.
- leeoniya 7y agowell sure, when we had little bandwidth to even download a photo.
- PavlovsCat 7y agoNot all animated pixel art was for lack of video, just like not all ascii art was and is for lack of images. Recording a video is a wholly different process to animating a 16x16 smiley. If anything, at least by now, I think more people record video because they can't draw, than people draw because they can't afford the equipment or bandwith for video.
- bbanyc 7y agoThere's also the trick where you can redefine the palette for each consecutive frame, and set the "delay" between frames to zero, in order to get more than 256 colors in a single image. This is so horrendously inefficient it should be a crime. But it's still a GIF, and anything that can display animated GIFs can display it too.
- Dylan16807 7y agoNot that that means it will display entirely correctly. Browsers generally treat delays of 0 or 1 centiseconds as errors, and instead sit on that frame for a tenth of a second.
- userbinator 7y agouse transparency for non-changed parts of the image In other words, similar to what video codecs do with "skipped macroblocks", except at a far more granular level. One wonders how efficient it would be if GIF was extended with things like motion vectors... but between the transparency/delta-enocding and the multi-palette "layering", you can sort of see the beginnings of a video codec.