How can I skip compressing one PNG?

前端 未结 4 1308
攒了一身酷
攒了一身酷 2020-11-29 07:09

(Note: I have solved this problem, but it took long enough that I\'m posting question/answer here.)

The Xcode build process \"optimizes\" my PNGs when build

4条回答
  •  无人及你
    2020-11-29 07:29

    Found another very simple method to disable compression for a single png file. I think this is a better approach than the accepted answer because you don't have to change type (or extension) of file in the local file-system but only in XCode.

    Change the file type from Default - PNG Image to Data in Identity and Type inspector in XCode. See below:

    Was:

    enter image description here

    Now:

    enter image description here

提交回复
热议问题