4 ms·
> In 8-bit mode it supports even fewer colors than GIF (GIF can combine frames to achieve thousands of colors) That's... technically possible but it gives you
by Dylan16807 10y ago
> In 8-bit mode it supports even fewer colors than GIF (GIF can combine frames to achieve thousands of colors)
That's... technically possible but it gives you a ridiculous level of time-based artifacting when you need more than 256 colors to appear at the same time.
APNG beats animated GIF for most cases where animated GIF is useful. Just like PNG beats GIF for most cases where non-JPEG images are useful.
- versteegen 10y agoTime-based artifacting? I think you might not be aware that it's not necessary to have a time delay between frames (in fact, time delays and animations are actually a Netscape extension to the format!) In fact breaking a frame up into multiple pieces with different bounding boxes is a compression technique used to reduce the amount of zero bytes that need to be encoded/compressed. ImageMagick and gifsicle will do this.
- Dylan16807 10y agoIf you set the delay between frames to 0 or 1 hundredths of a second, browsers will assume it's a mistake and bump it up, usually to 10. The fastest you can actually make the delay is 2/100 of a second. There's no way to have multiple frames show up simultaneously.
- andrewshadura 10y agoThere was a true-colour GIF using more than 256 colours using this technique.
- Dylan16807 10y agoSure. It works eventually, but it causes distortion as the frames layer over each other with very visible delays.