There are many formats used to store images in files. GIF, TIFF and JPEG are very common. Others are BIFF, bmp, Clear, FITS, IFF, NFF, OFF, PCX, PNG, TGA, XBM.
Some of these are documented on-line at the following sites:
The Graphics File Format Page. The NCSA file formats archive. The Avalon repository.