Questions tagged [icns]

Apple Icon Image format

Under Mac OS ("Classic", i.e. 7.x-9.x), icons were traditionally stored as metadata in resource forks. Mac OS X introduced a new, more portable format for icons to accommodate filesystems that can't store resource forks: icns files. These files contain the exact equivalent of a corresponding icns resource:

icns < total length > < data >

where

  • total length is a big-endian (0x12345678 is stored as 12.34.56.78) 32-bit integer; this length includes the resource header (and should therefore be equal to the size of the icns file)
  • data is a sequence of bytes

Reference:
mac os x icons for gtk

23 questions
13
votes
2 answers

iconset:error: Failed to generate ICNS

I'm trying to make an iconset for an application, but keep on getting an error when I make it: Hexchat.iconset:error: Failed to generate ICNS. I tried both exporting .png files individually from Illustrator, as well as using a script. Current script…
Terekhov
  • 141
  • 1
  • 7
11
votes
5 answers

"Missing required icons" when submitting app with Application Loader

When submitting my application using the Application Loader tool, I have the following error: ERROR ITMS-90236: "Missing required icons. The application bundle does not contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x…
Martin Delille
  • 11,360
  • 15
  • 65
  • 132
6
votes
2 answers

PyInstaller icon option doesn't work on Mac

I ran the following command on my mac and created an .app file. pyinstaller --icon icon.icns --noconsole -n testApp main.py However, the generated .app file does not show the icon. icon.icns is specified as an icon file in info.plist. The…
taichi
  • 631
  • 1
  • 7
  • 26
6
votes
1 answer

icns file not found error with javapackager on macOS High Sierra

I just installed macOS High Sierra (10.13) and am attempting to update a tutorial I wrote that shows how to packaging a Java Swing application (executable JAR) into a macOS installer. The tutorial's steps worked fine on macOS Serra (10.12). Now the…
Dem Pilafian
  • 5,625
  • 6
  • 39
  • 67
3
votes
2 answers

How to set the application icon in a Qt application on OS X, sufficient for distribution?

Following up on this answer to this question, I would like a clear, step-by-step set of instructions on how to set the application icon for a Qt application on OS X sufficient for distribution of the application via an installer and/or through the…
Dan Nissenbaum
  • 13,558
  • 21
  • 105
  • 181
3
votes
1 answer

Retina-ready .icns icon file on 10.5 Leopard (size limit?)

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 to post process the .icns file I make from a .iconset using iconutil on 10.8. The problem is that if I include…
Andrew Madsen
  • 21,309
  • 5
  • 56
  • 97
3
votes
1 answer

How to create a ICNS icon programmatically?

OK this is what I want : Take some NSImages Add them to an ICNS file Save it This is what I've done so far (purely as a test) : - (CGImageRef)refFromImage:(NSImage*)img { CGImageSourceRef source; source =…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
2
votes
0 answers

Folder icons in Mac OS Big Sur

I am trying to set the folder icon for a shared folder from /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericSharepoint.icns I have observed that none of the .icns files in the path mentioned above have the darker tint of blue…
2
votes
2 answers

Creating Icons (ICNS) programmatically from 1024 * 1024 size NSImage

I'm trying to create an ICNS of size 120 * 120 from a 1024x1024 image programmatically. Currently I'm creating an NSImage, then I create CGImageRef objects with the appropriate resolution, finally I'm saving them to a path using…
Harjot Singh
  • 6,767
  • 2
  • 38
  • 34
2
votes
1 answer

Creating an ICNS programmatically: "Unsupported Image Size"

I'm trying to create an ICNS (including a 1024x1024 image) programmatically. Currently I'm creating an NSImage, then I create CGImageRef objects with the appropriate resolution, finally I'm adding them to an icon by using…
Fatso
  • 1,278
  • 16
  • 46
2
votes
2 answers

How do I command Automator to convert the multiple images from PNG to ICNS once at all?

I use OS X Mountain 10.8.2. I used Automator and added AppleScript, copying the command from the old app's developer at the Iconoodle - Convenient ICNS to PNG image conversion (Iconoodle isn't supported by OS X 10.8 by being a PPC app). I saved the…
user1637530
1
vote
2 answers

How to change icon of alias created using applescript?

I have an applescript which creates a shortcut on a desktop to an executable on the file system. The excutable has the standard exec icon . Is it possible to change the icon to point to say an icns file ? I've read you can do it using a third…
Abbas
  • 3,144
  • 2
  • 25
  • 45
1
vote
1 answer

Set icon to dmg file not working with icns and png

I am creating a dmg file and getting following error while using the icns and png files.. Here is the command: DeRez -only icns resources/test.icns > icns.rsrc Error: /Applications/Xcode.app/Contents/Developer/usr/bin/DeRez - SysError -39…
user3531900
  • 311
  • 4
  • 13
1
vote
0 answers

What is the smallest OS X application icon file?

Just out of interest I have been investigating how small I can make a viable application which will work with OS X 10.4, 10.5 and 10.6. I have produced several applications below 50 bytes. The simplest consists of only the following 36 byte file at…
Neville Hillyer
  • 354
  • 1
  • 10
1
vote
1 answer

How Do I Add An Alpha Channel To My PNG Files Using ImageMagick?

I have several Mac apps already created using another tool that I need to create Apple images for. They were created as PNG files without an alpha channel and stored in a folder. I attempted to do the following command: iconutil -c icons…
1
2