This software is no longer maintained and hasn't been updated for a very long time. Good luck if you need it!
osxiconutils
is a set of Mac command line utilities for retrieving, setting, converting and working with Apple icons (icns
). Created a long time ago.
seticon - set the custom icon of a Mac OS X file or folder [man page]
geticon - retrieve the icon of a given Mac OS X file or folder as an icns
file [man page]
image2icns - convert an image file to a Mac OS X icns
file [man page]
icns2image - convert a Mac OS X icns
file to a standard image file (JPEG, PNG etc.) [man page]
osxiconutils
is free, open source software and has a home on GitHub.