d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Graphic Design > Tutorials & Galleries > File Comparison Gif And Jpg > Odd Question...
Add Reply New Topic New Poll
Member
Posts: 1,214
Joined: Dec 8 2006
Gold: 71.43
Apr 1 2009 04:53pm
regarding the differences between a .gif file and a .jpg file. Are those attributes dependent upon the way that the file was created, or of the way that the file is stored? If you save a file that was created as a .jpg as a .gif, will it retain the photo realistic detail and color?
Member
Posts: 14,047
Joined: Sep 3 2007
Gold: 5.00
Apr 1 2009 04:56pm
The two most popular image formats for the web are JPG and GIF. These formats represent very different approaches to the problem of delivering an image with minimum file size anddownload time. This page describes the difference between these approaches and offers tips on when to use JPG and when to use GIF.

While GIF is great for computer generated images with limited palettes, JPG is far better for photographs. It gives better quality images for the same file size. Below is a comparison. The image on the left is a blowup of a very small region of a large image compressed with JPG. The image on the right is the same region compressed using GIF. The GIF file is 2.4 times bigger than the JPG, but is clearly of lower quality. Note the use of pixel dithering to try to match the color gradations in the shirt. (You may want to back up from your monitor for a more realistic comparison of the appearance of the images.)


Note: the composite image is saved in PNG format, which uses a lossless 24-bit compression algorithm. Your browser must support PNG for you to view these images.

For an even more extreme example, here is a comparison between a more highly compressed JPG and the same GIF. In this image below, the file size of the JPG on the left is 18 times smaller than that of the GIF on the right.


The JPG is on the left, and the GIF is on the right. The GIF file is 18 times the size of the JPG file, but the JPG still looks better. See the purple pixels that the GIF mixes in the face to try to get the correct average color in this region.
Member
Posts: 8,694
Joined: Apr 23 2006
Gold: 1,570.00
Apr 1 2009 04:57pm
Quote (AngryOne @ Wed, Apr 1 2009, 06:53pm)
regarding the differences between a .gif file and a .jpg file. Are those attributes dependent upon the way that the file was created, or of the way that the file is stored? If you save a file that was created as a .jpg as a .gif, will it retain the photo realistic detail and color?


idealy .gif files are used for animation. any still image that i plan on using on the internet gets saved as a .png

This post was edited by ZeRo-Europa on Apr 1 2009 04:58pm
Go Back To Tutorials & Galleries Topic List
Add Reply New Topic New Poll