Why is the iOS app compressing so well?

I'm confusing how Xcode manages the compression of my iOS application so efficiently. All my images and sound files combine up to 282 MB for about 3,000 items. However .app is somehow only 126 MB! In addition, the sizes of the files inside the contents of the .app package are the same, but the sizes of the folders are approximately equal to half the size. How is this possible?

+4
source share
1 answer

The main reason is probably because all of your images (assuming the images make up the majority of 282 MB in your application) are compressed using pngcrush as a build step in your application. You can see this by looking at the build log from xcode.

The special version of pngcrush, which is used in the iOS SDK, causes PNG images to be non-standard (which makes them inaccessible for Mac or any other standard program, for that matter). Instead, they are adapted to the display equipment of iOS devices, which means that they will load faster.

+1
source

All Articles