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.
BMP is format for storing bitmap images. In this format, you can only save bitmaps monolayer. For each pixel in different files may come different number of bits. The latest versions of the BMP has the ability to control color. In particular, you can specify the endpoints perform gamma correction and embed color profiles ICC.