Convert images to scaled iOS Assets in a flash (no dependencies required)!
Makes the file executable and copies it to /usr/local/bin
so it can be accessed from anywhere.
- Clone this repo.
cd ios-icon-generator
chmod +x igen
cp igen /usr/local/bin/igen
Convert sunset.jpg
file into icon.jpg
, icon@2x.jpg
& icon@3x.jpg
.
Command
igen sunset.jpg icon.jpg
Output
Using 'sunset.jpg' to convert...
(3/3) Files Created Successfully!
1. icon.jpg = 300 x 300
2. icon@2x.jpg = 603.00 x 603.00
3. icon@3x.jpg = 900 x 900
Note
Omit the second parameter (icon.jpg
) to use the same name.
Finder
Rename igen
to igen.sh
and make your edits. The igen
file is Shell Script.
Pull requests are welcome.