ios-icon-generator is a shell script which aim to generate iOS APP icons easier and simply.
VERSION: 1.0.0 USAGE: ./ios-icon-generator.sh srcfile dstpath DESCRIPTION: This script aim to generate ios app icons easier and simply. srcfile - The source png image. Preferably above 1024x1024 dstpath - The destination path where the icons generate to. This script is depend on ImageMagick. So you must install ImageMagick first You can use 'sudo brew install ImageMagick' to install it AUTHOR: Pawpaw LICENSE: This script follow MIT license. EXAMPLE: ./ios-icon-generator.sh 1024.png ~/123
-
Install ImageMagick
Before you run this script, please check whether you had install ImageMagick. If you don't have install. Follow this:
sudo brew install ImageMagick
-
Clone And Chmod
git clone https://github.com/smallmuou/ios-icon-generator cd ios-icon-generator chmod 777 ios-icon-generator.sh
-
Run
StarnetdeMacBook-Pro:ios-icon-generator starnet$ ./ios-icon-generator.sh ~/Downloads/1024.png ~/output [INFO] Generating images... [INFO] Generate Done.
PS: You can find out the icons in ~/output directory.
There is also another shell script ios-navbar-icon-generator.sh
to generate navigation bar icons, that works in the same way.
With the script os-custom-icon-generator.sh
you can generate a set of three images to use in your app (myimg.png, [email protected], [email protected]).
Use it in this way ./ios-custom-icon-generator.sh icon-big.png ~/asset_dir 100
. The third parameter is the final base size of the image: using 100, your output image.png will be 100x100 px, [email protected] 200x200 and [email protected] 300x300.
`
- 1.0.0
- Generate all size icons for iPhone and iPad.
This script follow MIT license.
If you have any question with using it, you can email to me. My email is: [email protected]