Created
December 7, 2014 01:08
-
-
Save fnobi/f51f04911843e23f4d27 to your computer and use it in GitHub Desktop.
iOS・Android向けにアイコンを量産したいとき ref: http://qiita.com/fnobi/items/841e507d5e046951c193
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
# オリジナルのアイコン画像を original.png とする | |
# iPhone・Android通して最大のアイコンサイズは180x180なので、original.pngはそれ以上のサイズで用意 | |
# ios | |
$ convert -resize 120x120 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_app\@2x.png | |
$ convert -resize 180x180 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_app\@3x.png | |
$ convert -resize 80x80 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_spotlight\@2x.png | |
$ convert -resize 120x120 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon_spotlight\@3x.png | |
$ convert -resize 58x58 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon\@2x.png | |
$ convert -resize 87x87 original.png ios/example/Images.xcassets/AppIcon.appiconset/example_icon\@3x.png | |
# android | |
$ convert -resize 72x72 original.png android/res/drawable-hdpi/ic_launcher.png | |
$ convert -resize 48x48 original.png android/res/drawable-mdpi/ic_launcher.png | |
$ convert -resize 96x96 original.png android/res/drawable-xhdpi/ic_launcher.png | |
$ convert -resize 144x144 original.png android/res/drawable-xxhdpi/ic_launcher.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment