This is a color model display format that uses the three primary colors (blue, red and green) to create an image. Each color can have up to 255 gradations, allowing for color depths of up to 48 bits. RGB supports the display of 16,777,216 colors.
GIF is a format for the exchange of images. It is a popular format graphics. Capable of storing compressed data without loss of quality in the format of not more than 256 colors. GIF format was developed in 1987 (GIF87a) by company CompuServe for transferring raster images over networks. In 1989, the format has been modified (GIF89a), have been added support transparency and animation.