iOS: how to reduce size of large PNG files

前端 未结 3 2019
攒了一身酷
攒了一身酷 2021-01-31 22:57

I\'m currently optimizing my iOS app for the new iPad. Unfortunately by adding launch images for the iPad retina display the size of my ipa grows from 1.2MB to

3条回答
  •  时光说笑
    2021-01-31 23:46

    Ive struggled with this too, unfortunately not much can be done.

    In an effort to dramatically increase drawing performance of iOS apps, Xcode re-compresses PNG files as it builds. It premultiplies the alpha channel and byte swaps the red, green and blue channels to be sequenced blue, green and red. The result is optimised for iOS’s purpose, but as a side effect, ImageOptim’s work gets undone…

    Source

提交回复
热议问题