Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What is the correct way of converting one or more .png files to .icns files?.

I've installed icnsutils but I'm having a hard time figuring out how to work with png2icns.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can use:

 png2icns file.icns file.png

The first one is the name you want your .icns file to have. The last one is the .png file you want to export as an icon.

Important: Only convert the icons that match sizes icns supports: (16x16, 32x32, 128x128, 256x256, 512x512 and 1024x1024 pixels)

Or you can use an online service: iConvert Icons

Source: Ubuntu manuals

share|improve this answer
    
It complains about the size Bad dimensions. I just tried iConvert works fine however,I have to manually select the images one by one, I have to convert over 600 pngs :) . –  Uri Herrera Nov 28 '12 at 23:43
    
Which are the dimensions you are trying to use? Apparently that error is thrown when the size is not supported. The png2icns documentation says: /* Only convert the icons that match sizes icns supports */ which as far as I know are: 16x16, 32x32, 128x128, 256x256, 512x512 and 1024x1024 pixels –  M. Cunille Nov 29 '12 at 1:12
    
Hmm they're 640x640 but I can resize them to 512 and try again, is there a way to batch convert them? –  Uri Herrera Nov 29 '12 at 4:00
    
You can try using this software: RedImages –  M. Cunille Nov 29 '12 at 4:07
    
Sorry, I mean batch convert the .png files to .icns –  Uri Herrera Nov 29 '12 at 4:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.