Internet Explorer DOM7009:无法解码URL:[url]上的图像 [英] Internet Explorer DOM7009: Unable to decode image at URL: [url]

查看:598
本文介绍了Internet Explorer DOM7009:无法解码URL:[url]上的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用O365中的SharePoint网站.该网站包括一个列表/库,其中只包含带有.GIF扩展名的员工图像.第三方进程将图像导入到SharePoint中.我没有有关该过程的详细信息.

I'm working with a SharePoint site in O365. The site includes a List/Library that contains nothing but employee images with .GIF extensions. A 3rd party process imported the images into SharePoint. I have no details on that process.

从SharePoint O365服务器提供服务时,所有图像都不会在IE 11中显示.即使自己加载图像也不会显示.该问题与图像的数量或大小无关

None of the images will display in IE 11 when served from the SharePoint O365 server. The image will not display even when loaded by itself. The problem is not related to the amount or size of the images as this question discusses. The same exact images will display fine in IE 11 on an on-premise SharePoint 2010 server. Chrome, Firefox, etc display the image fine on both servers. I do not see this problem with any other browsers nor do they give any warnings or console errors. It's purely related to IE 11 and these .GIF images on the O365 server.

IE为每个图像显示以下控制台消息:

IE shows the following console message for each image:

DOM7009:无法解码URL:[url]

DOM7009: Unable to decode image at URL: [url]

我该如何解决此问题以及可能是什么原因造成的?

How do I fix this problem and what could be causing it?

修改: 如果我只是从网络上保存图像并尝试通过IE打开图像,则它不会显示相同的问题.如果我保存在本地正确显示的图像并尝试通过IE打开它,则该图像也会失败.

If I simply save the image from the web and try to open the image via IE, it fails to display with the same issue. If I save the image that is displaying properly on-premise and try to open it via IE, it fails as well.

标题: http://pastebin.com/vHhs4rm6

推荐答案

我的解决方案:

如果我打开MS Paint,创建了一个新的.GIFF图像并将其保存到我的服务器,它实际上将正确显示.

If I opened MS Paint, created a new .GIFF image and saved it to my server, it would actually display properly.

这导致我使用ImageMagick并在不会显示的图像上进行标识. ImageMagick表示图像最初是PNG图像,出于某种原因被保存为GIF图像到我的服务器.通过工作流将图像文件重命名为其原始格式会导致它们正确显示.因此,无论将所有图像上传到我的服务器的过程是什么,PNG都会重命名为GIF,将文件弄乱,从而导致此问题.

This led me to use ImageMagick and do an identify on the images that wouldn't display. ImageMagick indicated the images were originally PNG's and were saved to my server as GIF's for some reason. Renaming the image files back to their native format via a workflow resulted in them being displayed properly. So, whatever process uploaded all the images to my server renamed PNG's to GIF's, messed up the files and resulted in this problem.

这篇关于Internet Explorer DOM7009:无法解码URL:[url]上的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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