Each GIF file is composed of a number of basic components, which are listed below in order:
GIF Signature
Screen Descriptor
Global Color Map
Image Descriptor
Local Color Map
Raster Data
GIF Terminator
The following subsections describe these GIF file components.