• 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
Size limit on .icns files containing 1024x1024 version in 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size limit on .icns files containing 1024x1024 version in 10.5?


  • Subject: Size limit on .icns files containing 1024x1024 version in 10.5?
  • From: Andrew Madsen <email@hidden>
  • Date: Sun, 07 Oct 2012 14:04:34 -0600

I'm trying to create a retina ready version of my application's icon. The application targets 10.5+. I'm using Uli Kusterer's oldiconutil (https://github.com/uliwitness/oldiconutil) to post process the .icns file I make from a .iconset using iconutil on 10.8.

The problem is that if I include a 1024x1024 icon ("email@hidden"), the icon does not display on 10.5. Finder doesn't display the icon, and when it is opened in Icon Composer on 10.5, it appears to be blank/empty. If I remove this largest size, the icon displays correctly on 10.5. Interestingly, if I substitute a completely different, simpler 1024x1024 image with a much smaller file size (~300K instead of ~1MB), the icon again works fine on 10.5. So it seems that there may be some limit on the file size of the overall .icns file and/or the individual image chunks in a .icns file that when exceeded breaks compatibility with Leopard.

Compressing the 1024x1024 image with TinyPNG (http://tinypng.org/) was not enough to fix the problem. It did result in a significantly smaller .icns file before running it through oldiconutil, but the final, JPEG2000 compressed output of oldiconutil was still much larger than the variant using a simpler substitute image, presumably because the more complicated image is simply not as compressible.

Has anyone else run into this problem before? Have you found a solution? If I can't figure out a solution, I'll have to just omit a retina ready application icon until I drop support for 10.5.



Thanks,

Andrew Madsen
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Size limit on .icns files containing 1024x1024 version in 10.5?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Static Cocoa Library
  • Next by Date: NSTextFieldCell assertion failure messages?
  • Previous by thread: Re: NSViewController
  • Next by thread: Re: Size limit on .icns files containing 1024x1024 version in 10.5?
  • Index(es):
    • Date
    • Thread