简体   繁体   English

如何解压缩.ipa文件中的图像

[英]how to uncompressed compress image from .ipa file

I am creating web app demo to create manifest and copy icon image of .ipa file(iPhone application) 我正在创建Web应用程序演示以创建清单并复制.ipa文件的图标图像(iPhone应用程序)

I have used below library - https://github.com/wbroek/IPA-Distribution 我在下面的库中使用过-https: //github.com/wbroek/IPA-Distribution

I am succeeded to create manifest and copy icon image of iPhone app from .ipa to image folder but this image is compress so when i try to open or show this image in web page it give me black image. 我成功创建了清单文件并将iPhone应用程序的图标图像从.ipa复制到图像文件夹,但是此图像已压缩,因此当我尝试在网页中打开或显示此图像时,它会给我黑色图像。 I search lot but i doesn't get how to uncompressed this image. 我搜索了很多,但我不知道如何解压缩该图像。

Please ,can anyone tell me what is procedure to uncompressed this image and then copy to image folder. 请有人可以告诉我解压缩该图像然后复制到图像文件夹的程序是什么。

Apps compiled for iOS have their images optimized in some PNG format that is specific to Apple : https://developer.apple.com/library/ios/qa/qa1681/_index.html 为iOS编译的应用程序以特定于Apple的某些PNG格式优化了其图像: https//developer.apple.com/library/ios/qa/qa1681/_index.html

Simplest fix would be to run xcrun through exec(), if that is an option for you. 最简单的解决方法是通过exec()运行xcrun,如果可以的话。

While analyzing the task I came to know that Apple compressed all the PNG Images which are not visible in window and Linux machine but visible on mac machine. 在分析任务时,我知道Apple压缩了所有PNG图像,这些图像在window和Linux计算机上不可见,但在mac计算机上可见。

To use the PNG files, I have to uncompressed these files but unfortunately there is no API or library available to uncompress such files. 要使用PNG文件,我必须解压缩这些文件,但是不幸的是,没有可用的API或库来解压缩此类文件。

While googling I came across the java desktop application (.jar file) which converts compressed iPhone file to PNG image. 在谷歌搜索时,我遇到了Java桌面应用程序(.jar文件),该应用程序将压缩的iPhone文件转换为PNG图像。

So you have to intergrate that .ja r file in php code 因此,您必须在php代码中整合该.ja r文件

I have written blog on this . 我为此写了博客。 click here to see in detal 点击这里查看详细

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM