关于GIF图像格式:
1,无损压缩
2,索引颜色,8 bits/pixel,即2^8=256种颜色
3,支持动画;每帧可有单独的调色板
4,支持透明
GIF被认为适用于颜色深度要求不高、主要由线条/文本/纯色色块等构成的图像,例如logo
用GIF存储漫画似乎不错。。。
# spec(gif89a)
http://www.w3.org/Graphics/GIF/spec-gif89a.txt
# 解析库
giflib:giflib is a library for reading and writing gif images. It is API and ABI compatible with libungif which was in wide use while the LZW compression algorithm was patented(LZW是专利算法,libungif只能解码、不能编码GIF;由于该专利已过期,GIF格式可自由使用了,包括解码和编码--这就是giflib)
浙公网安备 33010602011771号