iPad 2 Safari not showing progressive .jpg files

时光怂恿深爱的人放手 提交于 2019-12-06 22:15:33

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

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

  • progressive encoding is used
  • the image is a background (for an element or the whole page)
  • the image is large (I don't know how big exactly, but I ran into problems with images that were in the thousands of pixels wide)
  • possibly other things, I haven't fully explored this bug

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

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)

I also have this problem on iPad simulation and device. The image can't load as the background but can load via the link.

I fix this by: Open this image by photoshop, File -> Save as web, then choose jpeg, save it and replace the old image.

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