Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11441] iOS: Size of images placed inside Resources/iPhone folder increases by 30-40kb in the generated the ipa/app file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-10-13T19:54:34.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sn/a
ComponentsiOS
Labelstriage
ReporterAnirudh Nagesh
AssigneeChris Barber
Created2012-10-12T22:43:00.000+0000
Updated2017-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

FileDateSize
ImageSize_BeforeBuilding.png2012-10-12T22:43:00.000+000088927
ImageSize_in_ipaORapp .png2012-10-12T22:43:00.000+0000175307

Comments

  1. Chris Barber 2012-10-13

    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
  2. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the above comments.

JSON Source