ios - Pngcrush libpng 错误 : Not enough image

标签 ios libpng pngcrush

这是 Xcode 中的错误消息: 在 /Path/image@2x.png pngcrush 中检查 alpha 时捕获了 libpng 错误:图像不足 dCommand/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng 发出错误但未返回非零退出代码以指示失败

但即使出现此错误,应用程序仍能正常运行。甚至图像也在运行 iOS 6.0 的 iPhone 4 上加载

我尝试删除图像并重新添加。还尝试将其从预览保存为 png。

最佳答案

libpng 是一个开源项目,源代码在这里:Sourceforge.net

我在源代码中搜索了您提到的错误,Not enough image dCommand。我能找到的最接近的匹配项是图像数据不足,来自pngrutil.c

Not enough image data 的快速谷歌给出了这个解决方案 stackoverflow.com

Found it!!

You have to save your PNG files as NOT INTERLACED. Try to open the file in photoshop (or similar), save as, and select "Not interlaced".

It is working in my case

hope this helps

关于ios - Pngcrush libpng 错误 : Not enough image,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18450769/

相关文章:

objective-c - 音频完成后,访问 navigationController 会产生 EXC_BAD_ACCESS

iphone - X代码iO6 : UIWebView Returns Black Screen After Returning from Choosing a Photo

c++ - 使用 libpng 将位图缓冲区快速编码为 png

qt - 在 Qt 中与 libpng 链接

xcode - 在 Windows 上使用 pngcrush 恢复 XCode 压缩?

iOS - 沙盒中重新匹配 WithCompletionHandler 的问题

ios - 应用程序在某些 iPhone 上显示错误的语言

php - GD image_png 慢

objective-c - iOS 中的 PngCrush 是什么?

javascript - 客户端 PNG 压缩使用像 pngcrush 这样的 javascript?