谷歌浏览器不会加载图片,但其他浏览器会。图片网址显示一个正方形 [英] Google Chrome won't load image but other browsers will. Image url bring up a square
问题描述
您的 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屋!