How to create and edit icons in Mac OS X
… using Photoshop, Preview and img2icns
I put this little tutorial/how-to partly for my own benefit in case I forget the process but also for others who want to know how this is done and want the end-to-end process documented (I found that there were instructions for the various different parts listed here but none of it joined up). All you need is Preview (comes free with OS X), img2icns (a free download) and Photoshop. If you don’t have Photoshop, there may be an equivalent way of doing this in your graphics app of choice but I don’t know it.
Happy icon editing!
- Highlight the icon you want to start with (although you could, of course, create one from the ground up) and then do Cmd + C (as in ‘copy’) :

- Open Preview and create a new document from the clipboard (Cmd + n):

- You’ll see the icon there in all it’s alpha transparency glory. Now save it (Save as - Cmd + Shift + S):

- Pick a sensible name and location and ensure that the Alpha checkbox is ticked:

- Open Photoshop then open the tiff file that you just saved. It will look a bit horrible at first but don’t worry, the alpha transparency information is still there:

- To get the alpha transparency info, select the Channels palette, then Cmd-click on the thumbnail so that you get the ‘marching ants’ around the folder in the right place, as seen below:

- Switch back to the layers palette. The background layer is locked so create a copy of that layer:

- Next, apply the alpha transparency mask to the new layer by clicking on the mask icon then switch off the background layer:

- Then, do whatever it is that you want to do to customise your icon (see below). When you’ve done then choose ‘File > Save for web’ and save the image as a PNG (24)

- Next you’ll need to convert the lovely PNG you just saved. Go download img2icns and install it (it’s free!). Then, open it up and you’ll be presented with preferences … and that’s all you’ll see (they don’t disappear); select the second radio.

- Here’s where the magic starts to happen. Simply drag your PNG image onto the img2icns application icon (shown below - I’m dragging it onto the dock icon) and it’ll create a folder with the icon for you in the same location as the original PNG file:

- Nearly done. All you need to do is 1) find the newly created folder, highlight it and copy it (Cmd + C) then 2) do a File > Get Info (or Cmd + I) on the folder you want to apply the new icon to. Click on the small folder icon in the info window and do a paste (Cmd + V)

And that’s that done! - Personally, I find it useful for clarifying removable drives and such like but what you do with it is up to you, of course:


on October 15th, 2006 at 6:28 am [link]
THANKS YOU :)
on November 2nd, 2006 at 4:31 am [link]
You just saved my ass on a school project, thanks alot :D
on January 21st, 2007 at 6:52 pm [link]
nice tutorial :)
on January 23rd, 2007 at 7:30 am [link]
Ooh I knew about img2icns, but I never thought about the problems I might run into editing existing icons ^^;
Thanks for the info =)
on February 25th, 2007 at 12:38 pm [link]
Thanks so much for this tutorial. Simple, elegant and it works!
on April 16th, 2007 at 11:04 am [link]
Thanks for a well written and useful tutorial.
on November 20th, 2007 at 10:54 am [link]
[…] If you’d like to do something different with your Safari icon, Ian lloyd has some nice instructions on how to modify app icons […]