I’ve been making my own Mac icons for folders, applications, and a myriad of other uses for well over 20 years now. Back then, I was stuck with 256 (or fewer) colors, a black/white alpha channel, and pretty much had to make them pixel by pixel in ResEdit (uphill… both ways… barefoot… in the snow…).
Later on, I wound up registering a Developer account with Apple so I could use the icon tools in Xcode (well… and for AppleScript Studio, but that’s a different story), and probably tried a half-dozen different freeware or shareware utilities over the years. Some worked well, and others not-so-well.
In an intersting twist, when Apple made icons a little more complex with the addition of Retina icons in OS X 10.7, they actually made the process of creating the icons a lot easier; all you need is a little skill with your favorite graphics program that can create images with transparent backgrounds (such as TIFFs or PNGs), and you can crank out custom icons for custom folders, internal and external drives, or even applications using built-in utilities and features of Lion and later. So if you have:
- OS X 10.7.5 Lion or later including macOS High Sierra
- a 1024 x 1024 image that you’d like to make into an icon – or the ability to make such an image
- a graphics program that can resize your image and export PNG files (If you have your finished image already, you can do this in Preview).
- and the desire to customize your desktop
Then you have all you need to make your own custom desktop icons. So let’s get started!
Create your base image.
Use your favorite image editor (Photoshop, Illustrator, GIMP… whatever you like) to create a 1024×1024 pixel document with a transparent background and draw/paint/assemble your icon. For this tutorial, I’m going to use Adobe Illustrator to create a real simple circular icon with the Rocket Yard logo inside, mostly because I had the graphic files laying around from another project, so it was quick to put together. Whatever you design is really up to you, but here are a couple of tips that may help make your custom icon look like it came with your system. If you’re making a folder or drive icon from scratch, it helps to use the same proportions as an existing system icon. To get a reference image:
- Select the item in the Finder you want to reference
- Hit Command-I to open the Get Info box
- Click on the icon itself so that it’s highlighted.
- Hit Command-C to copy the icon
- Open up Preview (it’s in your Applications folder)
- Hit Command-N to create a new image with the contents of your clipboard (i.e., your reference icon)
- Export the image as a PNG with an Alpha channel.
This image will now have the same size and transparency as the original, and can now be loaded into its own layer in any graphics editing program that supports them (which should be most of them). If you’re creating an application icon, I highly recommend following Apple’s OS X Human Interface Guidelines when creating your icons. It’s actually an interesting read no matter what (at least if you’re interested in icons and such).
Export a series of PNG files.
Once you have your icon looking the way you want it, go ahead and save the file. That’s just for safety’s sake. Now, we need to export ten PNG versions of this image, each with its own size and name.
|Filename||Image Size (in pixels)|
|firstname.lastname@example.org||1024 x 1024|
|icon_512x512.png||512 x 512|
|email@example.com||512 x 512|
|icon_256x256.png||256 x 256|
|firstname.lastname@example.org||256 x 256|
|icon_128x128.png||128 x 128|
|email@example.com||64 x 64|
|icon_32x32.png||32 x 32|
|firstname.lastname@example.org||32 x 32|
|icon_16x16.png||16 x 16|
How you go about exporting these image sizes is up to you. The quickest way is to just take the same image and scale it down while exporting. However, for best quality, I have found it best to actually scale down a copy of the image in the graphics program itself, make adjustments as necessary (some details don’t always look right when simply scaled) and then export the adjusted image. However you do it, though, is really up to you. It should be noted that you technically don’t need to make the versions with names that end in @2x, as they are for Retina screens only. However, since more and more Macs are available with Retina displays, including these versions will ensure your icons look their best, regardless of which kind of screen they eventually get displayed on.
Create an .iconset and preview your work.
You should now have ten PNG files. Go ahead and put them all in one folder, then name the folder “<name>.iconset”, where <name> is the name of the icon. I named mine “rocketyard.iconset”. You’ll be asked if you’re sure you want to add the extension “.iconset” to the folder; just tell it yes. Congratulations! You’ve just created an .iconset file. Now is a good time to preview how your icon will look at various sizes. Simply select the iconset folder in the Finder and hit the space bar on your keyboard to invoke QuickLook. A preview of your icon will appear in a window with a slider at the bottom. Dragging the slider left or right will change the size of the preview. Check through the range of sizes to make sure everything looks good all the way through. I’ve found that some more complex designs don’t look as good at the smaller sizes. In the Rocket Yard icon example, I found that the gradient background looked fine on a Retina display, but didn’t look as nice on a non-Retina one at sizes below 32×32. Fortunately, fixing that is simple enough. Each of the PNG files covers icon sizes from its size to the next lower; “icon_512x512.png” covers icon sizes from 512×512 through 257×257, “icon_256x256.png” covers sizes from 256×256 through 129×129, and so on. For retina displays, the same thing applies, except for you use the file sizes with @2x in the name. So for this example, I made the background a solid color, and replaced the 32×32 and 16×16 images in the iconset folder. Now that we’re satisfied with how the icon looks at all the different sizes, it’s time to make that desktop icon.
Convert the .iconset folder to an .icns file.
To get the final .icns file that we want, we’re going to use the iconutil Terminal command. This has been built into OS X since at least 10.7.5, so you’ll need that version or later to use it. With your .iconset folder on the Desktop, we’ll need to use the following command: iconutil -c icns path/to/iconset Let’s take a closer look at what this command actually does
- icontutil – this invokes the iconutil Terminal command
- -c icns – this indicates that you want to convert the target file to an .icns file.
- path/to/iconset – this is the actual file path to your .iconset file. If you want to type the whole thing in, go right ahead, but the easiest way is probably to just drag your .iconset folder into the Terminal window and it will automatically type in the correct path.
Since my iconset folder is on the Desktop and named “rocketyard.iconset” my Terminal command would be iconutil -c icns ~/Desktop/rocketyard.iconset Once you hit return, iconutil will make an .icns file with the same name and location as your iconset. In my case, “rocketyard.icns” was made on my desktop. This is the file we want.
Use the ICNS file to customize your file icons.
The most common way to swap icons in OS X has generally been the copy/paste method we describe on our Drive Icons page. As long as the item you’re copying has the icon pasted on a folder or file (like our drive icon packs do) you should have no trouble copying and pasting to an new folder or drive. However, what you see on the Desktop isn’t necessarily what you’d be copy/pasting. OS X, by default, is set to render the contents of a graphics file – including JPEGs, GIFs, PNGs, and ICNS files like we just made – on the Desktop, rather than the generic icon for that file type, which is actually assigned to it. That means that if you use the copy/paste method with one of those files, you will be transferring the generic file icon, and not the image within.
With an ICNS file like we just made, though, it’s a simple process to change a desktop icon if you’re running 10.8 or later. Simply open the Get Info box on the item which icon you’d like to change, then drag the ICNS file onto the Get Info box’s icon. Now you’ve got a custom icon on your desktop that scales nicely to all sizes, and you can copy/paste it between other items as mentioned before. It should be noted that dragging and dropping only works with ICNS files like we just created; JPEGs, GIFs, PNGs and other files won’t work the same way.
If you’ll be using these icons with 10.7.5 or earlier, you have two ways you can apply these icons to folders and drives.
The first (and probably the best) way is to use this drag and drop method on a newer OS version, transfer the folder with the icon to the other computer, then use the older copy/paste method there. This will keep all the size variants together and it will scale as it should.
However, if you don’t have any versions of OS X past 10.7.5, then the best you can do for folders and drives is to open the icon up in Preview, select all, then paste it into the target folder’s Get Info Box. Unfortunately, this method only copies and pastes the largest version of your icon and scales it down, which largely negates most of the work described above.
So why would you make ICNS files in 10.7.5? Well, if you make/use a lot of AppleScript or Automator applications, you can also customize their icons with an ICNS file, and these icons will scale properly and do so on all OS versions from Lion to present.
Make a copy of the application (just to be safe), and then right-click on the copy and select “Show Package Contents.” In the window that opens, you will see a folder named Contents. Inside the Contents folder will be one named Resources. Inside the Resources folder will be the ICNS file which gives the app its generic icon. The file will be named “applet.icns” for AppleScript apps, and “AutomatorApplet.icns” for Automator apps. Simply rename your new icon’s ICNS file so that it has the appropriate name, and replace the existing one. Now, once you restart the Finder (e.g., by restarting or logging out and back in), your custom applet has a custom icon that can’t be accidentally deleted.
Whether it’s to separate out a folder or drive icon so it’s more discernible from a sea of generic icons on your desktop, adding that extra level of polish to your frequently used AppleScript Applets and Automator Workflows, or just tricking out your desktop to better suit your own sense of style and taste, making your own icons can be a fun and easy way to do it.
Of course, if you just want to be able to distinguish your OWC drives from the rest of your drives, we offer a full collection of icons for all OWC and NewerTech storage offerings, all ready for you to copy/paste to your heart’s content. If you’ve got a brand new OWC or NewerTech storage solution, you can find them in the included software under “Other Goodies.” Don’t worry if you erased that folder from your drive, though; you can also find them on our Web site.
Note: We will update once we confirm compatibility with the new macOS Mojave