1、 什么是GIF?
GIF作为网络上非常流行的图形文件格式,相应大家并不默生。GIF分为静态GIF和动画GIF两种,扩展名为.gif,是一种压缩位图格式。GIF本质就是将多幅图像保存为一个图像文件,从而形成动画。更多的GIF描述参考百度百科或者维基百科。本文从网上各种摘录与拼接,旨在解析GIF文件格式。
2、GIF BNF状态图:
可见,一共包括: header, logical screen descriptor, global color table, graphics control extension, image descriptor, local color table, image data, plain text extension, application extension, comment extension, and trailer。
GIF标识符和版本号 |
|
显示描述 |
|
紧跟着logical screen descriptor的全局颜色表 |
|
G |