How to Save a Mac App Icon as a Transparent PNG in 3 Easy Steps

Joined
Mar 30, 2005
Messages
9,567
Reaction score
25
Points
48
montage of app icons


Have you ever searched online for an application icon? Maybe you wanted to add the Zoom logo to a Keynote presentation on videoconferencing. Or perhaps you needed a high res image of the Excel emblem for a tattoo to prove how much you love Microsoft. And once you find what you are looking for, it’s a darn jpeg that would leave an unsightly white background anywhere you put it.

Not helpful.

Thankfully, there is an easy way to render a high-resolution PNG image file with a transparent background for any icon on your Mac. And it can be done in less than 30 seconds in 3 simple steps with this Rocket Yard tip. Here’s how:

Create a Transparent Image from a Mac Icon

  1. Select an application in the macOS Finder and choose “Edit > Copy” or hit ⌘C.
  2. Open the Preview app and select “File > New from Clipboard” or hit ⌘N.
    • A new Untitled document will be created with several iterations of the graphic running down the left-hand side. Don’t freak out. It’s supposed to be that way.
      NumbersICNSPreview.png
  3. Choose “File > Export…”
    • Select “PNG” from the Format drop-down menu at the bottom of the dialog box.
    • Make sure “Alpha” is checked because this preserves the transparency channel. Unchecking it will result in the undesired white background mentioned above.
      AlphaChecked.png
    • Give it a name, choose a location, and hit “Save.”

Done – you’ve just saved a Mac app icon as a transparent PNG!

Epilogue: How Did That Work?


I’m the kind of person that likes to know why certain things work the way they do and not just how to do it. So, if you’re like me, below is a little more info. If you could care less, then feel free to comment on how helpful this tip was, and carry on about your day! :)

Here’s what happened.


When you copied the application from the Finder, Preview was smart enough to know that you wanted to extract the graphic element when you requested it to create a new file. In this case, the app’s icon.

What kind of graphic is an icon?


The icon filetype is called – get this – an Apple Icon File, or .icns. Just like jpg, png, gif, tiff, etc., it is an image file. Or, more accurately, a collection of images. This is why you saw multiple occurrences of the same graphic when you opened the file in Preview.

Each of the images in the .icns file is a different size, typically ranging from 16×16 pixels to 1024×1024. They double in size along the way: 16 > 32 > 64 > 128 > 256 > 512 > 1024 and contain retina versions, which are 2X the standard size.

Why the different sizes?


macOS uses the fixed-size images to scale and display them at any intermediate size as needed. For example, when you resize a Finder window in Gallery mode, the icons smoothly shrink and grow – anywhere from 16 to 1024 pixels square. And because they are PNGs, they maintain their transparency.

Of course, you can save your image in any of the supported graphic formats using Preview, but for the purposes of being able to use it in presentations, visual artwork, websites, print media, transparent PNGs are your best and easiest option.

Like I said, quick and easy!

Related: Want to try the reverse and create a custom icon from a PNG? Read the Rocket Yared article, Create Your Own Custom Icons.


veQQj7oy--c


Click here to view the article...
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top