iPad 2 Safari不显示渐进式.jpg文件 [英] iPad 2 Safari not showing progressive .jpg files

查看:192
本文介绍了iPad 2 Safari不显示渐进式.jpg文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将iPad 2与OS 5.1.1一起使用.在Safari中,尝试通过img标签显示jpg图像,但不显示(仅显示?图标).如果直接在地址栏上输入url,则显示相同的图像.

Using iPad 2 with OS 5.1.1. In Safari, trying to display a jpg image through img tag but doesn't shows (shows only ? icon). The same image displays if url directly typed on address bar.

还请注意,如果图像另存为非渐进jpg,则可以正常工作.通过Photoshop在另存为Web"和另存为"方法中保存的渐进jpg.两者都无济于事.

Also noted that if the image saved as non-progressive jpg, it works fine. The progressive jpg saved through photoshop on both "save for web" as well as "save as" methods. Both doesn't helps.

有什么建议吗?

推荐答案

Safari有一个明显的错误,即如果满足某些条件,它将不显示某些渐进式JPEG图像.

Safari has an apparent bug where it won't show some progressive JPEG images if some criteria are met.

以我的经验,当满足以下某些条件时,Safari不会显示jpg:

In my experience, Safari won't display jpgs when some of the following criteria are met:

  • 使用渐进式编码
  • 图像是背景(用于元素或整个页面)
  • 图像很大(我不知道到底有多大,但是我遇到了数千像素宽的图像的问题)
  • 可能还有其他事情,我还没有完全研究过该错误

除Safari外,我无法在任何浏览器中重新创建此文件.

I have not been able to recreate this in any browser except Safari.

要解决此问题,您可以重新保存图像,确保它不是渐进格式(photoshop等具有此选择器),或使用其他格式(gif,png等)

To fix this, you can either re-save the image, making sure that it isn't in a progressive format (photoshop, etc have a selector for this), or use another format (gif, png, etc)

这篇关于iPad 2 Safari不显示渐进式.jpg文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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