无效的PNG图像文件:iDOT不指向有效的IDAT块 [英] Invalid PNG Image file: iDOT doesn't point to valid IDAT chunk

查看:527
本文介绍了无效的PNG图像文件:iDOT不指向有效的IDAT块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用中有一些HTML内容页面,我正在使用UIWebView来显示它们。其中一些页面中有一个PNG图像,它在xcode的调试控制台中生成以下消息:

I have some HTML content pages in an app and I'm using a UIWebView to display them. Some of these pages have a PNG image in them that is generating the following message in the debug console in xcode:

ImageIO: PNG invalid PNG file: iDOT doesn't point to valid IDAT chunk

图像仍然显示并且看起来正确。此外,只有当我在iPad(第三代)上运行应用程序时才会发生这种情况。我的iPhone 4不显示此消息。

The image still displays and looks correct. Also this only happens when I run the app on an iPad (3rd generation). My iPhone 4 doesn't display this message.

我首先想到的是它是由文件名中的〜字符引起的(我已将〜ipad标记添加到文件名)。然而,删除〜字符没有任何作用。

My first thought was that it was caused by a ~ character in the filename (I've added the ~ipad tag to the filename). However, removing the ~ character doesn't have any effect.

我做了谷歌搜索,但是我只得到3个结果。其中2人使用中文,Google的翻译工作似乎没有很好的翻译。其他结果似乎与我有同样的问题,但没有回应他的 post

I've done a google search but I only get 3 results. 2 of them are in Chinese that doesn't seem to be translated well by Google's translater. The other results seems to be someone with the same issue as me, but no responses to his post.

推荐答案

<有相同的问题。解决方案:
使用color sync utility这是一个标准程序,您可以从启动板加载。打开png文件并使用该实用程序保存。

Had the same problem. Solution: use "color sync utility" which is a standard program, you can load from launchpad. Open the png file and save it with the utility.

这篇关于无效的PNG图像文件:iDOT不指向有效的IDAT块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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