Which graphic file formats are supported by browsers?

徘徊边缘 提交于 2019-11-26 22:37:18
ConroyP

There's an excellent chart on wikipedia that lists common image types and their support by browser.

The file types you listed (jpg, gif and png) seem to be the main formats supported by nearly every browser, albeit with certain caveats:

Internet Explorer supports PNG images but is unable to correctly display images with gamma correction or color correction. Versions of Internet Explorer prior to version 7 are unable to correctly display images with alpha channel (for transparency) without additional coding

BMP will work most anywhere.

But for web work, you should probably stick to the three you listed in your question.

Paul Tomblin

Until 2006, IE didn't deal properly with PNGs that used the alpha channel, while Firefox and other (nearly) standards conforming browsers did. There is still a lot of IE 6 out there, judging by my apache logs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!