Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Wanted: Convert Icon.icns to TIFF or PNG image

Wanted: Convert Icon.icns to TIFF or PNG image
Thread Tools
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Sep 5, 2002, 04:52 PM
 
I want a simple command-line or Cocoa tool to convert an .icns file to a TIFF or PNG image. [I'm an Apple newbie, so bear with me]

I see that both Quicktime and NSImage can easily convert between common image formats, but I don't think .icns is one of them.

On the other hand, the (aging) IconUtilities documentation talks about drawing to a rectangle on the screen, but it's not clear to me how to capture back the data into an image.

Does anyone have any pointers?
     
Mac Enthusiast
Join Date: Nov 2001
Status: Offline
Reply With Quote
Sep 5, 2002, 05:12 PM
 
If you just want to easily convert a ICNS image, use Preview. I tried building a command-line app to open an ICNS file; NSImage can read ICNS files, but it seems it tries to create a buffer window to store the image in. Just build a normal Cocoa app.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2