某些图像不会显示在IE7或IE8中 [英] Some images won't display in IE7 or IE8

查看:158
本文介绍了某些图像不会显示在IE7或IE8中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法弄清楚为什么这个图像(以及其他类似图像)不会在IE7或IE8中显示。它在IE9,Chrome,Safari,Firefox,Mac或PC以及这些浏览器的多个版本中显示完美。

I can't figure out why this image (and others like it) will not display in IE7 or IE8. It displays perfectly fine in IE9, Chrome, Safari, Firefox, on Mac or PC and multiple versions of these browsers.

http://images.appletree.com/icon/woman_big.jpg

另一方面,来自同一服务器的其他图像(当从S3 / Cloudfront或我的服务器提供时)显示正常。像这样:

On the other hand, other images from the same server (when served either from S3/Cloudfront or my server) display fine. Like this:

http://images.appletree .com / tree.png

我检查了web-sniffer.net,上面的失败图片返回正确的图像/ JPEG 。我比较了上面两张图片的响应标题,除了错误的内容类型之外,它们非常相似。上面的错误图像URL解析为Cloudfront(来自S3的Amazon的CDN服务绘图)。但即使我在常规服务器上托管坏图像,它们也会失败:

I've checked web-sniffer.net and the failing image above returns the correct content type of image/jpeg. I've compared the response headers for the 2 images above and they are very similar aside from the wrong content-type. The bad image URL above resolves to Cloudfront (Amazon's CDN service drawing from S3). But even if I host the bad images on a regular server, they fail:

http://www.appletree.com/images/icon/woman_big.jpg

我在想坏的图像以某种方式被破坏,IE7和IE8在其他浏览器能够处理的过程中呕吐。说得通?我可以查看某种jpeg验证器吗?

I'm thinking the bad images are somehow corrupted in a way that IE7 and IE8 throw up on while other browsers are able to deal with. Makes sense? Is there some kind of jpeg validator I can check?

推荐答案

你的JPG在 CMYK 色彩空间。

Your JPGs are in CMYK colour space that IE can't read.

使用Photoshop或 IrfanView 将图像存储为RGB文件(在IrfanView中,只需打开并重新保存;在Photoshop中,有一个显式的转换选项。)

Use a tool like Photoshop or IrfanView to store the images as RGB files (In IrfanView, just open and re-save; in Photoshop, there is an explicit conversion option.)

这篇关于某些图像不会显示在IE7或IE8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆