Last active
December 17, 2015 17:19
-
-
Save motoishmz/5645053 to your computer and use it in GitHub Desktop.
original.png = 1,024 x 1,024 png image
This file contains 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
/*! | |
// cite: http://m.designbits.jp/12101514/ | |
// Icon | |
Icon.png 57 x 57 for non-retina iPhone/iPod touch (3/3G/3GS) | |
Icon@2x.png 114 x 114 for retina iPhone/iPod touch | |
Icon-72.png 72 x 72 for non-retina iPad | |
Icon-72@2x.png 144 x 144 for retina iPad | |
Icon-Small.png 29 x 29 for non-retina iPhone/iPod touch Spotlight and Settings (optional) | |
Icon-Small@2x.png 58 x 58 for retina iPhone/iPod touch Spotlight and Settings (optional) | |
Icon-Small-50.png 50 x 50 for non-retina iPad Spotlight and Settings (optional) | |
Icon-Small-50@2x.png 100 x 100 for retina iPad Spotlight and Settings (optional) | |
iTunesArtwork 1024 x 1024 for Ad Hoc, iTunes // PNGで作成し、拡張子は付けない。サイズは512×512でもいいけど1024×1024が推奨 | |
*/ | |
// $ pwd #=> ~/Desktop/ResizeTest | |
// $ ls #=> original.png (1,024 x 1,024 png file) | |
$ sips -Z 57 original.png --out Icon.png | |
$ sips -Z 114 original.png --out Icon@2x.png | |
$ sips -Z 72 original.png --out Icon-72.png | |
$ sips -Z 144 original.png --out Icon-72@2x.png | |
$ sips -Z 29 original.png --out Icon-Small.png | |
$ sips -Z 58 original.png --out Icon-Small@2x.png | |
$ sips -Z 50 original.png --out Icon-Small-50.png | |
$ sips -Z 100 original.png --out Icon-Small-50@2x.png | |
$ sips -Z 1024 original.png --out iTunesArtwork |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment