Tutorial: create transparent PNGs from your application icons
Written at 3pm on 19.12.07
Filed under Software / This Site / Tutorials & Resources / ALL CATEGORIES
19 comments (closed)
![]()
Back in April when I was about to launch this version of the site, I was preparing the application icons found on the ‘about’ page by asking each company to send me PNGs, before the very talented Jasper Hauser informed me of a neat little trick that would allow me to do it myself. Although extremely simple and involving just the Finder and Preview, you can make your own PNGs (and we’re talking the full 24-bit alpha transparency kind) straight from app icons on your hard drive; and as it appears that I wasn’t the only one to be in the dark about this, I thought it was about time to share the technique.
Step 1
Let’s say I want to create a PNG for Twitterific. First, find the app in your Applications folder (or wherever you installed it), highlight the file, and hit cmd-i to bring up the ‘info’ window. In the top-left of that window, you’ll see a small version of the app icon, so click on this and you’ll see it highlighted with a faint border. Hit cmd-c to copy this to the clipboard.
Click on the image above to view the full-size version on Flickr.
Step 2
Next, open up the Preview app and go to File > New From Clipboard; you should see your icon appear in Preview’s main window. From here, you can then save it to the PNG format, or indeed any other format you wish. A word of warning, though: Saving the file in Photoshop (PSD) or TIFF format - even with ‘Alpha’ checked - will convert the alpha channel to pure black, so you’ll want to use PNG as the format if you want to keep all that lovely transparency intact.
Click on the image above to view the full-size version on Flickr.
And that’s it! Simple… but rather handy. Post a comment if you’ve found this useful or if you know of any improvements / similar tips. I’m afraid I don’t have Leopard so I’m not sure if the newest version of Preview behaves in the same way. Please let me know!
19 comments (closed)
Comments are currently closed on this entry, but you can still read those that have already been posted...
Search
Speaking engagements
- Web Developers Conference 12th November 2008
- Spletne Urice, Ljubljana 29th October 2008
- SkillSwap Brighton 20th August 2008
- Future Of Web Design, London 17th & 18th April 2008
- Future Of Web Design, New York 7th November 2007
- SkillSwap Bristol 25th September 2007
- iDesign: design for life (part of the London Design Festival) 18th September 2007
- Oxford Geek Night 25th July 2007
Recent posts
- Why being freelance does not mean you have to work more hours
- Starkers for WordPress 2.6.2
- Forthcoming speaking events
- Thwart the design thieves feature in .net magazine
- Death to IE6
- Vote for my SXSW ‘09 panels
- Bypassing the new Delicious site
Categories
- ALL CATEGORIES (89)
- Apple (9)
- Carsonified (2)
- Cooking With Beer (1)
- Design inspiration (2)
- Life In The Real World (32)
- Publication & Recognition (21)
- Software (14)
- Speaking Engagements (11)
- That Internet Thing (15)
- The Business (5)
- This Site (14)
- Travel (10)
- Tutorials & Resources (10)
- Web Design (32)
- Wordpress (5)
- Writing (1)
Blogroll
UPDATED! I’ve been known to while away a few hours on these blogs, most of which are written by my friends in the industry...
- Jørgen Arnor Gårdsø Lom
- Jina Bolton
- Nathan Borror
- Mark Boulton
- Sam Brown
- Andy Budd
- Kevin Cornell
- Jeff Croft
- Jon Hicks
- I Love Typography
- Shaun Inman
- Roger Johansson
- Daniel Mall
- Kyle Meyer
- D. Keith Robinson
- Jason Santa Maria
- Dave Shea
- Jonathan Snook
- Jon Tan
- Typesites
- Tim Van Damme
- Khoi Vinh
- Web Designer Wall
- Rob Weychert
Recent Comments:
- Rajesh Pancholi said: sorry for the babbling : )
- Rajesh Pancholi said: Good for you, remember why you’re making the change and don’t...
- prisca said: Elliot, great to read you’re making such a success of your freelance life ;-)...
- Christoph said: Very motivating and encouraging article! But I have some second thoughts :-)...
- Pete Eveleigh said: BTW I loved this bit… I’m not the type of guy who’ll write a blog...
- Pete Eveleigh said: I tend to agree with what you say but the article doesn’t really say...
- Gary Stanton said: Wish I knew how you did that. I’ve been freelance for around three years...
- Phil Bowell said: Whilst your post is very encouraging, I’m in agreement with John (the...
- Dave Ellis said: I seem to be going the opposite way, I need to make a conscious decision to work...
- Alex Older said: I’m looking to make the jump after Uni depending on how things go and this...
Recent Reads
-
Basics Design: Layout (Gavin Ambrose & Paul Harris) - A beautifully designed book about beautiful design. Some key layout principles are presented in an engaging way, and this is more a book about inspiration than pure instruction.
-
Poe: Illustrated Tales of Mystery and Imagination (Edgar Allan Poe) - Some fine contemporary illustrrators take on some Poe classics and the result is a gorgeous collection of words and art.
-
Penguin By Design (Phil Baines) - A history of Penguin Books’ cover designs, as educational and inspirational as you’d expect from this prolific publisher.
-
Thinking with Type (Ellen Lupton) - I first saw this sitting on a desk in the nytimes.com offices, and after thumbing through it, realised it was one of the best books about the technicalities of typography that I’d seen.
-
Hellboy: The Troll Witch and Other Stories (Mike Mignola) - The latest Hellboy trade paperback collects yet more classic stories, although this time Mignola is joined by other artists.
-
The Ten Commandments of Typography (Paul Felton) - A book of two halves (the flip-side deals with so-called ‘Type Heresy’), this is a witty but informative book bout typographical techniques.
-
Great Beers of Belgium (Michael Jackson) - No, not that Michael Jackson. This is the one who really knows his stuff when it comes to fine beers.
-
London: The Biography (Peter Ackroyd) - A lively, engaging book about the history of London, told as it the city itself were a living thing.
-
Tres Logos (various) - I could look through logo books until the cows come home; this kind of collection is invaluable to the identity designer, and this is, of course, just one book.
-
Business Cards 2: More Ways Of Saying Hello (various) - This is another great source of inspiration and a lovely ‘coffee table’ book that’s a joy to flick through even if you don’t need to design a business card.
-
Schild’s Ladder (Greg Egan) - One of the most full-on sci-fi books I’ve ever read, with its use of real physics and exploration of quantum mechanics shaping much of the narrative.
-
Wolverine: Weapon X (Barry Winsor Smith) - A landmark story in the history of this legendary comic book character, Weapon X has become a real classic.
-
Casa Batlló: Gaudi (various) - Sam and I visited Barcelona last year, where we saw several amazing architectural feats by Gaudi. This book captures some of the beauty that our camera couldn’t.
-
The Fundamentals of Typography (Gavin Ambrose) - This was the first bok I bought specifically about typography, and it pretty much does what it says on the tin, although a nice bit of history is thrown in as well.
-
Analog In, Digital Out (Brendan Dawes) - Magnetic North’s main man explores some arty, experimental projects without any of the ponce usually associated with the genre. This is a book about merging new and old ideas, and it’s inspiring all the way through.
-
The God Delusion (Richard Dawkins) - Possibly one of the most important books in print today.
-
Foundation’s Edge (Issac Asimov) - Another Asimov classic, this part of The Foundation Saga encapsulates some monumental ideas about humanity far beyond the boundaries of regular sci-fi.
-
Web Standards Creativity (various authors) - 10 great lessons for writing better markup, using the latest CSS, and adding subtle Javascript tricks
-
Transcending CSS (Andy Clarke) - Rethink the way you design and code. This book was hugely influential on me whilst building the latest version of this site and made me even more pedantic
-
Dune (Frank Herbert) - An absolutely legendary sci-fi novel full of very complex ideas... much better than the film!
-
Neverwhere (Neil Gaiman) - A dark and charming tale of a man who eschews normal life for the secret underworld of ‘London Below’
Flickr
View all of my photos on flickr
Antoine
19.12.07
#
Thanks a lot for the share ;-)
Sam Brown
19.12.07
#
Nice method Elliot, I have been doing it from the Terminal for a while but this seems pretty easy to do as well.
Elliot Jay Stocks
19.12.07
#
Cheers for such quick comments, guys!
@ Sam Brown: Thanks for the Terminal tip - I’ll give that a whirl too. I love your site, by the way. I’ve been perusing it on and off for the past couple of weeks. :)
Sean Farrell
19.12.07
#
wow, its so easy i kinda feel stupid now! thanks a lot and keep up the great work!
Kyle Meyer
19.12.07
#
Always wondered how to do this.
I had resorted to screen-shotting the icon from the get info pane and then setting it to multiply in Photoshop so I could use it on a flat color, but could never get a fully transparent version.
You win the cookie of the day, sir. Cheers!
Adam
19.12.07
#
Very nice post, always handy .. and the icons are so nice!
Sean Farrell
19.12.07
#
i’ve always actually gone into the application folder, than right clicked on the application -> Show Package Contents -> Contents -> Resources, then opened up the .icns file in preview and saved it out from Preview as a PNG. Works well too, but takes a few more steps than your tip
Max
19.12.07
#
Hey Elliot, any tips for pc users?
tartanproject.com
19.12.07
#
Hey,
really nice article, congratulation and will be reading you regurarly.
thanx
a.d.
prisca
19.12.07
#
Elliot :)
thanks for this - very useful ;) been using several of the techniques mentioned here (mainly the multiply option using the screenshot in Photoshop) - but this is is so much better, nice and easy - perfect results :)
just to answer your question - works fine in Leopard. Not sure what the old preview gives you - the new one gives you several different sizes: http://screencast.com/t/M4eaC5te7
qrayg
20.12.07
#
and we’re talking the full 24-bit alpha transparency kind
The proper term would be 24-bit + alpha, or better yet 32-bit since it’s a 24-bit image with an 8-bit Alpha channel. 24 + 8 = 32 :)
Matt Munsey
20.12.07
#
This will save me a lot of time in the future for sure. Thanks Elliot.
Jonathan E
21.12.07
#
Nice tutorial Elliot! This is going to be quite useful I’m sure for a LOT of people. Thanks you!
Jonathan E
21.12.07
#
Apparently I forgot how to type normal sentences. “Thanks” should just be “Thank” in my previous comment.
Anyways, I just wanted to confirm that YES! This does work in Leopard.
Cheers!
Rodrigo
21.12.07
#
FYI. You can also change the icons for apps, folders, etc in the Info window, by pasting a new icon instead of copying.
Grant
22.12.07
#
as Sean Farrell mentioned, you can right-click a mac app and select ‘Show Package Contents’ - inside the ‘Resources’ folder, you’ll not only find the app icon, but all sorts of other visual goodies if you’re looking for something like a button that’s part of the app, but not actually the finder icon.
mathewpacker.com [PING]
22.12.07
#
[…] Elliot Jay Stocks posted a really cool little tutorial on creating transparent png’s from application icons. It’s really well written and simple to follow. […]
5ivedance
07.01.08
#
Nice psot, amazing work. Thx.
pixelswithpigtails.com [PING]
02.02.08
#
[…] thanks to Elliot Jay Stocks’ tutorial here on how to create the transparent pngs from application icons which prettied up this […]