PNG 图像在构建和存档后变为空白/损坏
今天我遇到了一个奇怪的问题,在重命名应用程序中的几个图像并确保它们在设备和模拟器上工作后,我像往常一样使用构建和存档来构建我的应用程序以分发给测试人员。
然而,这次我从测试人员那里得到了奇怪的报告,说图像消失了,所以我在手机上安装了该版本,令我惊讶的是,它们按照他们所说的消失了。尝试进行清理并再次构建,但没有任何变化。
当我打开 .app 存档时,我可以清楚地看到许多(但不是全部)图像已变成空白,它们在磁盘上的物理尺寸似乎相同,并且当我按下时,它们似乎也具有正确的高度空间来预览它们,但是我无法使用 Photoshop 打开它们(文件格式模块无法解析文件)。
这是非常令人困惑的,因为我必须很快为测试做好准备,我非常感谢在这件事上的一些帮助。
I ran into a strange problem today, after renaming a couple of images in my app and making sure they work on a device as well as the simulator, I used Build and Archive as I always do to build my app to distribute to the testers.
However, this time I got strange reports from the testers saying the images were gone, so I installed the build on my phone and to my surprise they were gone as they said. Tried to do a clean and build again but no change.
When I open the .app archive I can clearly see that many, but not all, of the images have turned blank, they appear to be the same physical size on the disk and they also seem to have the correct height and with when I press space to preview them, I can't however open them with photoshop for example (the file-format module cannot parse the file).
This is very confusing and as I have to get the build ready for testing very soon I would very much appreciate some help in this matter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的源 PNG 似乎有点不标准,或者至少与 Apple 的 pngcrush 不兼容。确保您使用功能良好的常用工具来创建 PNG - 如有疑问,请重新转换/重新保存它们。
Your source PNGs seem to be slightly off-standard or at least incompatible with Apple's pngcrush. Make sure you use a commonly well functioning tool for creating the PNGs - when in doubt reconvert/resave them.