Batch optimization of PNGs for iphone/ipad display as xcode does

后端 未结 7 1043

I\'m working on a magazine viewer for ipad and I\'m struggling with the performance.

I figured out that the most expensive part of displaying the pngs is the loading

7条回答
  •  無奈伤痛
    2021-01-01 03:49

    In my benchmark file size turned out to be more important than Xcode preprocessing (Xcode files were larger and slower to load).

    Best way to reduce PNG file size is to convert it to PNG8+alpha format — you can do that in batch with pngquant (or tweak manually with GUI).

    However, if in your case conversion from RGBA to premultiplied BGRA is what is taking the most time, then a fork of AdvanceCOMP with XCode proprietary extensions added will let you batch convert PNGs to iOS's native format.

提交回复
热议问题