Created
June 17, 2016 12:21
-
-
Save motoishmz/3bda178a4bd0d7bc9d7d4c81b0279304 to your computer and use it in GitHub Desktop.
sips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
// for iOS: https://gist.github.com/motoishmz/5645053 | |
// cite: http://qiita.com/Jacminik/items/a4c8fe20a4cba62f428b | |
[email protected] (1024px) | |
icon_512x512.png | |
[email protected] (512px) | |
icon_256x256.png | |
[email protected] (256px) | |
icon_128x128.png | |
[email protected] (64px) | |
icon_32x32.png | |
[email protected] (32px) | |
icon_16x16.png | |
*/ | |
// $ pwd #=> ~/Desktop/MyIconTest.iconset | |
// $ ls #=> original.png (1,024 x 1,024 24bit png) | |
$ sips -Z 1024 original.png --out [email protected] | |
$ sips -Z 512 original.png --out icon_512x512.png | |
$ sips -Z 512 original.png --out [email protected] | |
$ sips -Z 256 original.png --out icon_256x256.png | |
$ sips -Z 256 original.png --out [email protected] | |
$ sips -Z 128 original.png --out icon_128x128.png | |
$ sips -Z 64 original.png --out [email protected] | |
$ sips -Z 32 original.png --out icon_32x32.png | |
$ sips -Z 32 original.png --out [email protected] | |
$ sips -Z 16 original.png --out icon_16x16.png | |
$ cd ../ | |
$ iconutil -c icns MyIconTest.iconset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment