出口签署的应用程序,而不与QUOT;优化" PNG图像 [英] Export signed app without "optimizing" png images
问题描述
当我出口的APK从日食,它融为一体presses所有的PNG图像。例如,一个4.6 KB PNG成了2.15 KB的APK里面。不过我preFER优化使用PNG文件 tinypng 中的APK建成之前,这使得更小的文件。使用tinypng同样的4.6 KB PNG成了746 B点。 当生成APK,COM pression跑在我的746乙PNG使它1.6 KB。
When I export an apk from eclipse, it compresses all of the png images. For example, one 4.6 KB png became 2.15 KB inside the apk. However I prefer to optimize png files using tinypng before the apk is built, which makes much smaller files. The same 4.6 KB png became 746 B using tinypng. When building the apk, compression ran on my 746 B png making it 1.6 KB.
有什么办法禁用此优化将来的版本?
Is there any way to disable this optimization for future builds?
推荐答案
在您的项目的build.xml
ANT文件可以覆盖 -crunch
的SDK,从而避免PNG COM pression,任务你previously COM pressed他们:
In your project build.xml
ANT file you can override the -crunch
task of the SDK, thus avoiding PNG compression, as you previously compressed them:
<target name="-crunch">
<echo message="Skipping PNG optimization"/>
</target>
这篇关于出口签署的应用程序,而不与QUOT;优化&QUOT; PNG图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!