| 1 |
macOS |
| 2 |
--- |
| 3 |
python3 generate-iconset.py ~/Desktop/chuck.png |
| 4 |
|
| 5 |
this will: |
| 6 |
1. create a folder ~/Desktop/chuck.iconset |
| 7 |
2. generate 10 files with different dimensions and save those into that folder |
| 8 |
|
| 9 |
next (from Desktop): |
| 10 |
iconutil -c icns chuck.iconset -o chuck.icns |
| 11 |
|
| 12 |
this will: |
| 13 |
create a single chuck.icns file |
| 14 |
|
| 15 |
|
| 16 |
windows |
| 17 |
--- |
| 18 |
magick.exe convert icon-16.png icon-32.png icon-256.png icon.ico |
| 19 |
|
| 20 |
--- author and reference --- |
| 21 |
Old version (we are using this one) |
| 22 |
https://github.com/retifrav/python-scripts/tree/master/generate-iconset |
| 23 |
|
| 24 |
New version (python package): |
| 25 |
https://retifrav.github.io/blog/2018/10/09/macos-convert-png-to-icns/ |
| 26 |
https://github.com/retifrav/generate-iconset/ |
| 27 |
|