A Bash / Shell script to convert your PNG images into Mac OS specific type ICNS (iconset) !
- Format should be PNG (transparency isn't mandatory).
- Dimensions need to be 1024x1024 pixels.
- Let’s get started by downloading the project, and move into the newly created folder:
> git clone https://github.com/BenSouchet/png-to-icns.git
Cloning into 'png-to-icns'...
> cd png-to-icns
Or copy/paste the script file png_to_icns.sh
in a directory
- Optionally: Place the 1024x1024 pixels image (
.png
) you want to convert in the folder - Start the script and give the path to the image as argument:
-i
stand forimage_path
> ./png_to_icns.sh -i <path_to_my_image.png>
INFO: The icon has been successfully created: ./icon.icns
- Done! The new icon has been created, the path of this
.icns
is indicate on the info message in your terminal.
If an error occur a message with the error(s) info will appear in the terminal.
You cannot see or understand the error, open an issue.
PNG to ICNS has been created and is currently maintained by Ben Souchet.
The code present in this repository is under MIT license.