iOS: how to reduce size of large PNG files

前端 未结 3 2026
攒了一身酷
攒了一身酷 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:54

    I was able to get it down to 633KB with pngquant (64 colors with slight dithering, which is barely noticeable on regular screen, and should be absolutely invisible at Retina resolution) and ImageOptim.

    Yes, you will need to disable Xcode's conversion to avoid Xcode inflating files by converting them to ARGB.

    NB: the article quoted in the accepted answer provides no benchmarks at all for the claimed speed difference.
    It also contains correction that it is possible to optimize images with ImageOptim for iOS apps
    .

提交回复
热议问题