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
1
vote
0 answers

Unity3d - PlayerIcon.icns is not generated

I want to know why the PlayerIcon.icns is not generated using Unity command line for Standalone MacOSX build, knowing that it is generated with Unity editor. Thanks
Imen
  • 161
  • 2
  • 14
1
vote
1 answer

Export ICNS icon from Adobe Illustrator

I have create an icon in Adobe Illustrator (CS6) for my own Mac OS X application. How can I export the icon the Apple's .icns icon format? The .icns file should contain the icon in multiple resolutions.
Thekwasti
  • 222
  • 2
  • 10
1
vote
2 answers

ImageIO Error When Creating ICNS File

This code (source is an NSMutableArray with NSImage objects: NSURL *fileURL = [NSURL fileURLWithPath:aPath]; CGImageDestinationRef dr = CGImageDestinationCreateWithURL((CFURLRef)fileURL, …
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

Get path from both local and iCloud directories

I have an Automator Quick Action script that converts PNG to ICNS, keeping both the original file name and its original position. However, if used inside an iCloud folder or a folder with a space in its name, the script won't…
Skifess
  • 3
  • 3
0
votes
2 answers

Create scaled, layered folder icons from multiple images via AppleScript?

There are similar answers already on here (like this one), but not with exactly what I want to accomplish. I would like to create an AppleScript that takes a chosen folder and application (or image file), scales the icon of the application/image…
0
votes
1 answer

Render NSImageNameComputer in Electron

According to this Apple documentation, you can use NSImageNameComputer in Swift to get an icon showing the current Mac. Is there any way to use this icon in my Electron app front end?
ma1234
  • 445
  • 1
  • 4
  • 9
0
votes
0 answers

Reading ICNS files to BufferedImage[] object

I have an ICNS file with multiple icons in it. I need to convert it to an array of BufferedImage objects using Java code. I did this using commons-imaging library by apache. It turns out I cannot use that library within my organization. Is there any…
0
votes
1 answer

Electron icns not showing up

I installed electron-prebuilt inside the main project root (locally). I browse node_modules/electron-prebuilt/ and i see the electron app package. Then i show package contents and i browser Resources/ where the app atom.icns can be found (i…
itsme
  • 48,972
  • 96
  • 224
  • 345
1
2