gif vs. jpg

.gif

.jpg

   
  • Good for illustration, line art and flat areas of color.
  • GIF compression is 8-bit and has a maximum of 256 colors.
  • You can reduce the number of colors in a GIF image and choose options to control the way colors dither in the application or in a browser.
  • GIF format lets you create interlacing, and animations.
  • GIF supports background transparency and background matting, in which you blend the edges of the image with a Web page background color.
  • Good for photographs and gradients.

  • JPEG compression is 24-bit, which means files can contain up to 16.7 million colors.

  • Unlike GIFs, the standard JPEG file is not interlaced (a problem addressed by the Progressive JPEG).

  • Preserves the broad range and subtle variations in brightness and hue found in photographs and other continuous-toned images.

  • The JPEG format does not support transparency.

  • Artifacts, such as wave-like patterns or blocky areas of banding, are created each time you save an image in JPEG format.