Is it possible to set an iPhone XCode project to skip the 'CompressResources' build step?
Specifically, I want to skip the stage where it runs pngcrush on all of my .png files, many of which don't survive the experience in a form which my app can read.
Edit: the version of pngcrush used creates png files which contain a non-standard 'mandatory, private' chunk which explicitly prevents decoding. I've modified my png reader to handle these files, but I'd still like a per-project method of skipping this step. One of the other side effects of pngcrush is that it doesn't save the colour value of transparent pixels, so alpha-ed textures show fringing at smaller mip levels.
The iphone png format is described here: http://modmyi.com/wiki/index.php/Iphone_PNG_images. In short,
- Skip the CgBI chunk
- Skip the zlib headers
- Swap BGR to RGB channel order
Edit: It appears it also premultiplies the alpha, so:
- Divide by alpha