某些图像不会显示在IE7或IE8中

编程入门 行业动态 更新时间:2024-10-25 16:29:04
本文介绍了某些图像不会显示在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.

images.appletree/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 / tree.png

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

I've checked web-sniffer 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:

www.appletree/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中

本文发布于:2023-07-27 02:51:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219920.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!