Rubius-sama
Jun 24, 2007, 06:50 PM
I've seen a lot of animated GIFs on the web using truecolor palettes (16/24/32 bit). I can't seem to figure out the secret behind this. Does anyone here know?
I found this on wikipedia but it didn't help.
[quote]Although the standard GIF format is limited to 256 colors, there is a hack that can overcome this limitation under certain circumstances.
GIF89a was designed based on the principle of rendering images (known as frames when used for animation) to a logical screen. Each image could optionally have its own palette, and the format provides flags to specify delay and waiting for user input between them (the latter is not widely supported by viewers). This is the feature that is used to create animated GIFs, but it can also be used to losslessly store a 24-bit RGB (truecolor) image by splitting it up into pieces small enough to be encoded into a 256 color palette and setting up the GIF to render these with no delay on the logical screen.[6] However, most web browsers seem to assume that this multi-image feature will only be used for animation and insert a minimum delay between images. There will also be some file size bloat from doing this, especially if the encoder doesn't support LZW for patent reasons. There are very few tools around that can easily produce 24-bit GIFs, and it is rarely an appropriate format unless there is absolutely no other option.
http://en.wikipedia.org/wiki/Gif</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>
I found this on wikipedia but it didn't help.
[quote]Although the standard GIF format is limited to 256 colors, there is a hack that can overcome this limitation under certain circumstances.
GIF89a was designed based on the principle of rendering images (known as frames when used for animation) to a logical screen. Each image could optionally have its own palette, and the format provides flags to specify delay and waiting for user input between them (the latter is not widely supported by viewers). This is the feature that is used to create animated GIFs, but it can also be used to losslessly store a 24-bit RGB (truecolor) image by splitting it up into pieces small enough to be encoded into a 256 color palette and setting up the GIF to render these with no delay on the logical screen.[6] However, most web browsers seem to assume that this multi-image feature will only be used for animation and insert a minimum delay between images. There will also be some file size bloat from doing this, especially if the encoder doesn't support LZW for patent reasons. There are very few tools around that can easily produce 24-bit GIFs, and it is rarely an appropriate format unless there is absolutely no other option.
http://en.wikipedia.org/wiki/Gif</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>