[Home]What is the difference between GIF and JPG graphics

HomePage | RecentChanges | Preferences | Newbie Help

The two most common graphic file formats used on the web are GIF and JPG, so what's the difference?

The difference lies in the compression techniques used to store images in a file, both file formats do it differently. GIF looks for lines of horizantal pixels all with the same colour and compresses them (Run Length Encoding - RLE), while JPG looks for patterns in an image and stores the image in a highly complex format which on each compression it forgets little bits of the image. This type of compression is called 'lossy' each time the image is saved it loses a little more of the image information until the image becomes a blur.

Technically, there is a difference between gifs and jpgs. So which one should you use?

HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited March 2, 2001 5:16 pm (diff)

This FAQ is happily hosted by Betadome Digital Media