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

查看:41
本文介绍了无效的 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(第 3 代)上运行该应用程序时.我的 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.

推荐答案

遇到了同样的问题.解决方案:使用标准程序颜色同步实用程序",您可以从启动板加载.打开 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天全站免登陆