Jump to content

PNG Image To ICNS Icon Converter


Recommended Posts

 

Hi everyone,

 

Here's a very small workflow to convert a (lovely) PNG image to a (lovely) ICNS icon file (that you can use for your node.js app, for example).

 

illustration.png.8170c12d1ec606d8b8504fae8ff7e829.png

 

  • Import the workflow from -> the github repository
  • Make a (lovely) 1024x1024 PNG image,
  • Select it in the Finder,
  • Hit CMD + ALT + CTRL + i (like "Image")

 

Et voilà!

 

You can also use the bash script, with more options (png2icns.sh).

 

Enjoy!

 

Edited by PhilIcare
Image dupliquée
Link to comment

Handy.

 

I found a bug and have a couple of suggestions.

 

It doesn't work if there are spaces in the filepath, as some of the variables/arguments in the script aren't quoted.

 

FYI, Alfred removes keyboard shortcuts when a user installs a workflow, so it doesn't work "out of the box". The user has to set their own keyboard shortcut first.

 

Have you thought about adding a File Action as an alternate way to run the workflow? That way, you can use it from Alfred's file browsing mode, and it's also helpful for old people like me who can't remember all their keyboard shortcuts.

 

Also, I think I found a bug in the bash script: Isn't there an "echo" missing here?

 

 

 

Link to comment
6 minutes ago, deanishe said:

Handy.

 

I found a bug and have a couple of suggestions.

 

Fixed. Thanks.

 

 

6 minutes ago, deanishe said:

 

It doesn't work if there are spaces in the filepath, as some of the variables/arguments in the script aren't quoted.

 

 

Fixed (I think so). Thanks.

 

 

6 minutes ago, deanishe said:

 

FYI, Alfred removes keyboard shortcuts when a user installs a workflow, so it doesn't work "out of the box". The user has to set their own keyboard shortcut first.

 

Fine. Copy.

 

Readme file and info changed.

 

6 minutes ago, deanishe said:

Have you thought about adding a File Action as an alternate way to run the workflow?

 

Yes.

 

Thanks for your attention && suggestions, @deanishe.

 

Best regards.

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...