In computing, JPEG is a commonly used technique of compression for photographic images. The name JPEG stands for Joint Photographic Experts Group, the name of the committee that created the standard. JPEG is mostly used for storing and transmitting photographs on the Web.
For this application, JPEG is considered far superior to GIF (Graphics Interchange Format), which uses a palette with a maximum limit of 256 distinct colors for each frame. The color limitation makes the GIF format unsuitable for reproducing color photographs and other images with continuous color, but it is well suited for more simple images.
JPEG is also preferred to PNG(Portable Network Graphics), which produces much larger image files for this type of image due to its loss less compression. PNG was created to improve upon and replace the GIF format. The JPEG compression algorithm is not well suited for line drawings and other textual or iconic graphics, and thus the PNG and GIF formats are preferred for these types of images.
A recent trend has been observed wherein it was discovered that PNG format is the most widely used although it much loading time. Certain advantages of PNG over GIF formats are mentioned below
- PNG achieves a much smaller file size than GIF format
- It offers true color up to 48 bits, whereas GIF uses 256-color palettes