Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jpeg vs gif

Status
Not open for further replies.

airsick

Programmer
Oct 14, 2002
28
GR
I am creating web graphics and I would like some advice in these two compressions: jpeg and gif.
Pros and cons and a conclusion on which one is better(combines best quality and small size)

Thanks a lot :)
 
The jpeg (jpg) format is a lossy format in that it losses image data each time it is saved. The jpg format is best for images with lots of color changes like photographs and gradients. The jpg format uses 16 million colors and is 24 bit. There are lossless versions of the jpg format and psp 8 supports such a format, though there are browser compatibility problems.

The gif format is best for images with blocks of solid color like clip art, and is a lossless format, in that no matter how many times it is saved, it does not lose image data. It also (unlike the jpg format) supports transparency. The gif format can have a maximum of 256 (8 bit) colors on down to 2 colors (1 bit).

hth...mike
spin.gif
 
i still like png the most, but u need a good compressor program and u need to tweek :) also some older browsers dont like png

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Another cool thing about the png format is that it supports transparency.

mike
 
yup :) especially usefull for getting 3d renders and keeping the alpha chanel :D

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Jpeg is lossy, so you have to save the master if you don't
want to kick yourself later. I sometimes do dozens of image corrections on one jpeg , and use the lowest compression option on save which seems to average out as about 7:1 over bmp, and it's very rare to find a degradation that I really care about. If you're really fussy, go back to the master and do them again, all combined, or combine a bunch when you start out. If you want to send them out, you can compress way down to save bandwidth, and if the receiver wants quality, send a moderately compressed version. I frequently compare bmp with jpeg on "problem" images and like jpeg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top