• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: .png images getting corrupted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .png images getting corrupted?


  • Subject: Re: .png images getting corrupted?
  • From: Patrick Mau <email@hidden>
  • Date: Mon, 12 Apr 2010 15:44:31 +0200

Hi

Just FYI I think that the utility used while copying resources on the iPhone platform is "pngcrush".

It's located in

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush

It tries to remove unnecessarry chunks and recompresses the image data.
I would not use it unless you absolutely need to preserve space.
Some programs cannot handle these stripped-down images.

Regards
Patrick

On Apr 12, 2010, at 15:34 , Steve Christensen wrote:

> In the project/target settings, look for the "Compress PNG Files" (COMPRESS_PNG_FILES). I don't remember now what the default value is for a newly-created target but I have it turned on. When I try to open the PNGs in the app bundle, Preview just shows empty windows. Interestingly, Default.png does display in Preview, so perhaps it's not compressed so it will load faster on app startup?
>
> steve
>
>
> On Apr 12, 2010, at 2:06 AM, Rick Mann wrote:
>
>> I'm trying to change the icon in the iPad version of my app, and suddenly I can't get any icon at all.
>>
>> I have an entry in my Info.plist:
>>
>> 	<key>CFBundleIconFile~ipad</key>
>> 	<string>icon-iPad.png</string>
>>
>> but the file that appears in the bundle is empty. That is, it has a blank thumbnail in the Finder, and opening it in Preview it contains nothing.
>>
>> Do the images get processed in some way when added to the bundle? My other images behave similarly, but seem to still show up in the app. It's just the app icon that shows up on the device as white.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: .png images getting corrupted?
      • From: Jens Ayton <email@hidden>
References: 
 >.png images getting corrupted? (From: Rick Mann <email@hidden>)
 >Re: .png images getting corrupted? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: .png images getting corrupted?
  • Next by Date: Re: Xcode constantly crashing with Perforce & 10.6.3
  • Previous by thread: Re: .png images getting corrupted?
  • Next by thread: Re: .png images getting corrupted?
  • Index(es):
    • Date
    • Thread