Donate SIGN UP

Jpeg vs Gif

Avatar Image
monkeychoo | 13:00 Sun 10th Apr 2005 | Technology
7 Answers
I have alway used jpegs on my website, but I constantly notice others using gifs instead. Is there reason for this? Are gifs superior to jpegs?
Gravatar

Answers

1 to 7 of 7rss feed

Best Answer

No best answer has yet been selected by monkeychoo. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Gif's usually have a colour resolution of 256 colours so are fine for artwork. They can also be animated gif's - jpg's are restricted to a single image.

Jpg's are much better for photos as the contain many more colours. If you use them for cartoon type images with large areas of block colours, you get colour fringes and other artifacts near changes from one colour to another.


Each has its own advantages and disadvantages

Gifs are mostly used on websites because they are smaller in size.  This obviously mean that they load much faster than Jpeg images especially for people using dial-up internet.

As mentioned, Gifs go up to a maximum 256 colours whereas Jpegs can go up to 16.7 million colours.  Jpegs use compression to make the image smaller than a BMP (Bitmap) image yet keeping nearly the same quality of a BMP.

-- answer removed --
Question Author
So it's JPEGs for photos and gifs for artwork - thanks guys - cleared that up nicely!!
gifs can also contain transparency
I'm a png man myself.

GIFs are not smaller in size at all.
GIFs don't have any compression.
That is why the are usually used for small and/or animated pictures.

1 to 7 of 7rss feed

Do you know the answer?

Jpeg vs Gif

Answer Question >>