Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is PNG bad for Browser Compatibility

I just figured out that if I make image .PNG its smaller than if I make it .JPG. Since I try my best to make fastest website I can size of the images are pretty important too. So my question is that I believe phones doesn`t support .PNG pictures. Is it true or not ? and Should I continue using .PNG instead .JPG ? Is there any solution that I can do in order to make smaller images without lowering their resolution ?

like image 555
Extelliqent Avatar asked Dec 21 '22 13:12

Extelliqent


2 Answers

Old browsers like IE6 (which is now deprecated) don't support transparent PNG files, so it really depends on which browsers you plan to support. In general, PNG files are fine and will run on all major browsers. Unlike JPEGs, PNG is lossless and this may work against it at times when compressing. If the image is complex, it may be better to have it saved as a JPEG for better quality. There's a small table here which briefly explains each format. A tool I use for really compressing PNGs files is PNG Monster. This often gets a better compression than some graphics applications.

like image 187
keyboardP Avatar answered Jan 31 '23 06:01

keyboardP


Apart from older versions of Internet Explorer, I'm not aware of any platform that doesn't support PNG.

Wikipedia: Web browser support for PNG

like image 44
Pekka Avatar answered Jan 31 '23 07:01

Pekka