谷歌浏览器不会加载图片,但其他浏览器会。图片网址显示一个正方形 [英] Google Chrome won't load image but other browsers will. Image url bring up a square

查看:322
本文介绍了谷歌浏览器不会加载图片,但其他浏览器会。图片网址显示一个正方形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第二次遇到这个问题。我在我的网站上放了一张png图片freshmindmusic.com/citytheking。它在其他浏览器中加载,但即使在我的手机上,Chrome也不加载。当我直接进入照片的链接时,chrome知道它存在,但显示一个框。我附上了一个屏幕截图。我也重新上传了图片并更改了名称。这仅仅是Chrome的问题吗?有什么我应该避免的吗?



解决方案

您的 help.png 图片似乎不是有效的PNG。我似乎在Chrome中得到了显示内容的回复,但它无法正确显示。

 内容长度:63825 
Content-Type:image / png

您需要确保图片类型匹配文件扩展名。例如,如果将图像保存为JPG格式,然后重命名扩展名,则会导致服务器以错误的MIME类型进行响应。



确保将图像编辑器中的图像导出为PNG图像类型并重新上传。


This is the second time I ran into this issue. I put a png image on my website here freshmindmusic.com/citytheking . It loads in other browsers but Chrome doesn't load it even on my cell phone. When I go directly to the link for the photo, chrome knows it exist but shows a box instead. I attached a screen shot. I also re-uploaded the image and changed its name. Is it just a Chrome issue? Is there something I should avoid?

解决方案

The help.png image you have doesn't appear to be a valid PNG. I seem to get a response in Chrome that shows content, but it doesn't get rendered correctly.

Content-Length:63825 
Content-Type:image/png

You need to make sure that the image type matches the file extension. If you saved the image as a JPG, and then renamed the extension, for example, this will cause the server to respond with the wrong MIME type.

Makes sure you export the image from your image editor as a PNG image type and re-upload.

这篇关于谷歌浏览器不会加载图片,但其他浏览器会。图片网址显示一个正方形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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