[TIMOB-11441] iOS: Size of images placed inside Resources/iPhone folder increases by 30-40kb in the generated the ipa/app file
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-10-13T19:54:34.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | triage |
Reporter | Anirudh Nagesh |
Assignee | Chris Barber |
Created | 2012-10-12T22:43:00.000+0000 |
Updated | 2017-03-23T20:46:30.000+0000 |
Description
Create a new Titanium mobile project in Studio.
Note that the size of Default-Landscape.png file inside Resources/iPhone folder. Its 517kB.
Build the project in either simulator or device. Note the size of the generated image size. Its 544kB.
If the image size is around 1MB, the final image size is around 1.4MB which results in increase in size of ipa.
Screenshots of image sizes are attached.
Attachments
This is expected behavior. All png files in the built app dir are optimized for running on the actual device, specifically, the red and blue components are swapped and the alpha channel is pre-multiplied (whatever that means). The output is non-standard PNG image that is LARGER than the original. See this article for more info: http://iphonedevelopment.blogspot.com/2008/10/iphone-optimized-pngs.html
Closing ticket as invalid with reference to the above comments.