Anyone using a computer should be familiar with the concept of file formats. File formats help to identify what kind of file is being worked with and are usually distinguished by the file extension. Most computer applications have a native file format, i.e., a default format for files created in that program. (For example, by default, Adobe InDesign saves files with an .indd extension, while Adobe Illustrator saves files with an .ai extension.) In addition, many applications allow the user to save files in formats other than the application's native format. It is a good idea to save files in the native format in addition to any desired non-native format.
There are three primary graphic file formats for Web images: GIF (Graphic Interchange Format), JPEG (Joint Photographic Experts Group), and PNG (Portable Network Graphics). Each of these graphic file formats is cross-platform and uses some form of compression to be optimized for use on the Web.
GIF is the preferred file format for images with large areas of solid color, such as logos, text as graphics, cartoons, etc. The GIF file format supports 8-bit images (up to 256 colors).
Here are some other important features of GIF images:
JPEG is the preferred file format for photographic images. In addition, the JPEG format works well with subtle transitions in color, such as watercolors, pencil or charcoal drawings, etc. The JPEG file format supports 24-bit images (over 16 million colors).
Here are some other important features of JPEG images:
PNG is a relatively new image file format that has many advantages over GIF and JPEG. The PNG file format can be 24-bit or 8-bit, eliminating some of the limitations of the other formats.
Here are some other important features of PNG images:
Lossless data compression is a class of data compression algorithms that allows the exact original data to be reconstructed from the compressed data. The term lossless is in contrast to lossy data compression, which only allows an approximation of the original data to be reconstructed, in exchange for better compression rates.wiki