My custom stacks games drawer icon, and a question?

Discussion in 'macOS' started by todd2000, Feb 26, 2008.

  1. todd2000 macrumors 68000

    Joined:
    Nov 14, 2005
    Location:
    Danville, VA
    #1
    SO I made a custom drawer icon for stacks, but Im a little confused. Right now it's just a folder with a custom icon. How do I make it a file like the rest of the drawer icons? Every time I try to save it as a PNG file it looses it's transparency. It's working as a folder, but I would rather make it a file if I can figure out how. Incase your curious here it is, if anyones interested, I can upload it. Here's a pic of my dock with the custom game icon.

    [​IMG]

    Thanks
     
  2. todd2000 thread starter macrumors 68000

    Joined:
    Nov 14, 2005
    Location:
    Danville, VA
  3. mckyvlle macrumors 6502a

    Joined:
    Nov 21, 2007
    Location:
    London, UK
    #3
    Icons are not in PNG format, but in "icns" format. You will need a program that can create icns files for you. For example Icon Composer from the Xcode Developer Tools.
     
  4. acfusion29 macrumors 68040

    acfusion29

    Joined:
    Nov 8, 2007
    Location:
    Toronto
    #4
  5. todd2000 thread starter macrumors 68000

    Joined:
    Nov 14, 2005
    Location:
    Danville, VA
    #5
    I tried Icon Composer, but it didn't work, the icon wasn't transparent. The pre-made drawer icons, are .app, not .icns. What am I missing? As I understand it, I make the icon in whatever image editor I want, then open it in icon Composer, and then what? I exported it as an .icns file, but that didn't work.
     
  6. trix180 macrumors newbie

    Joined:
    Nov 3, 2008
    #6
    You can use Img2icns, it allow you to easy create icns files from any picture format.
     
  7. sickmacdoc macrumors 68020

    sickmacdoc

    Joined:
    Jun 14, 2008
    Location:
    New Hampshire
    #7
    OK well to try to help clear this up, take a look at http://murphymac.com/creating-icns-icon-files/ which is a very short article regarding the steps for using .icns files as visible icons in the Finder.

    Note that one of the apps mentioned (IconDroplet) appears to have vanished from the net, but another free one I use is called Iconographer which sadly is also discontinued but the last version at that link works fine in Leopard. Also note the registration info the former developer included there for you to use to register it free.

    So to try to illustrate the basic flow I use to make usable Finder icons (and I know there are about a million ways to make them, but this works for me anyways):

    1. Create a file in Photoshop in the maximum icon size of 512x512 pixels (the Finder will scale down as needed and the next step will generate other sizes). Other graphics editors that are capable of preserving transparency will work too I imagine, but I just use PS myself as the tool of choice. Make sure that when you open the new file that you have a transparent background. If you have a white background your final icon will show that white. Create your icon, then save as a .psd file.

    2. Open Icon Composer and drag your Photoshop creation into the window that is appropriate for the size icon you have created in PS (again in my case 512x512) Icon Composer will ask you if you want it to scale the file to the other sizes- I generally do although you would answer no if you have constructed tweaked icons for the other smaller sizes individually. Save the file in Icon Composer- that will be an .icns file.

    3, Open Iconographer. Drag the .icns file to the dock icon of Iconographer and it will open correctly. Use the "Save as..." selection from the file menu give it a name and location and click "Save". It will then ask you (probably twice) if you want to "Regenerate mask"- just click yes. It will then be saved to whatever location you chose as what the Get Info box calls a "Mac OS Icon File".

    ...... 3a. If you use the "Save File into...." choice here instead, you can point to a blank folder (that you make before saving) to create the icon in the format that most standard icons are shared in.

    Anyway, doing it through this flow will result in an icon file with transparency preserved- though there are probably simpler methods! ;)
     

Share This Page