├── LICENSE ├── README.md ├── create_ios_and_android_icons.command ├── create_ios_icons.command └── icon_1024x1024.png /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Hibara, Mitsuhiro 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # create-ios-all-icons-shellscript 2 | 3 | Use Shell Script commands in only MacOSX for generating all icons that need to build iOS app. 4 | 5 | MacOSXに最初から入っているコマンドを使い、1024x1024(または512x512)サイズから、 6 | シェルスクリプトを使って、iOSアプリに必要なすべてのサイズのアイコンファイルを生成します。 7 | 8 | ## with Android icons 9 | 10 | せっかくなので、iOSアプリアイコンを生成するついでに、Androidアイコンも生成するシェルスクリプトを別途追加しました。 11 | 12 | https://github.com/hibara/create-ios-all-icons-shellscript/blob/master/create_ios_and_android_icons.command 13 | 14 | Added Shell Script that generates even Android icons with the iOS app icons. 15 | 16 | 17 | # When that does not work... 18 | 19 | スクリプトがうまく実行されない場合は、シェルスクリプトが実行されるディレクトリの権限を確認してください。 20 | スクリプトは、自身のいるディレクトリ内に「出力」ディレクトリを新たに作成するので、 21 | 書き込み権限が必要です。また、自身のスクリプトとしての実行権限も必要になります。 22 | 23 | When that does not work, check the permissions of the directory where the shell script is executed. 24 | This Shell Script creates other output directory in the directory where is own script. 25 | You will need to give write permission there. Also, you will need execute permission of as its own script. 26 | 27 | たとえば、以下のようにコンソールから指定してください。 28 | For example, input command from the console as follows. 29 | 30 | ```sh 31 | $ chmod a+x create_ios_icons.command 32 | ``` 33 | 34 | -------------------------------------------------------------------------------- /create_ios_and_android_icons.command: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #このシェルスクリプトを実行した場所をカレントディレクトリにする(お約束) 3 | cd `dirname $0` 4 | 5 | # 出力ディレクトリの生成 6 | outdir="ios" 7 | mkdir -p $outdir 8 | 9 | #---------------------------------------------------------------------- 10 | # iTunes Artwork アイコン 11 | #---------------------------------------------------------------------- 12 | 13 | # iPhone6, iPhone6 Plus登場以降、全デバイスで1024x1024が必須となりました。↓ 14 | # https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html 15 | # ですので、このスクリプトでは最低でも、512x512サイズのアイコン画像がないと処理を終了するように修正しました。 16 | 17 | # App icon for the App Store (すべてのアプリで必須) 18 | if [ -e "icon_1024x1024.png" ]; then 19 | if [ -e "icon_512x512.png" ]; then 20 | echo "icon_512x512.png はすでに存在しています。処理をスキップします。" 21 | BASE_FILE="icon_1024x1024.png" 22 | else 23 | sips -Z 512 icon_1024x1024.png --out icon_512x512.png 24 | BASE_FILE="icon_1024x1024.png" 25 | fi 26 | fi 27 | 28 | if [ -e "icon_512x512.png" ]; then 29 | if [ -e "icon_1024x1024.png" ]; then 30 | echo "icon_1024x1024.png はすでに存在しています。処理をスキップします。" 31 | else 32 | sips -Z 1024 icon_1024x1024.png --out icon_512x512.png 33 | BASE_FILE="icon_512x512.png" 34 | fi 35 | else 36 | echo "iTunes Artworkに設定できる適当なサイズが見つかりません。\niPhone6, iPhone6 Plus登場以降から、1024x1024が必須となりました。" 37 | exit 38 | fi 39 | 40 | #---------------------------------------------------------------------- 41 | # アプリアイコン(ファイル名) 42 | #---------------------------------------------------------------------- 43 | 44 | echo "BASE_ICON: " 45 | echo ${BASE_FILE} 46 | 47 | # iPhone Spotlight - iOS 5,6 推奨 48 | # Settings - iOS 5-9 推奨 49 | if [ -e "${outdir}/icon-small.png" ]; then 50 | echo "icon-small.png はすでに存在しています。処理をスキップします。" 51 | else 52 | sips -Z 29 ${BASE_FILE} --out ${outdir}/icon-small.png 53 | fi 54 | 55 | # iPhone 6s,iPhone 6, and iPhone 5(@2x) 推奨 56 | # iPhone 4s(@2x) 推奨 57 | if [ -e "${outdir}/icon-small@2x.png" ]; then 58 | echo "icon-small@2x.png はすでに存在しています。処理をスキップします。" 59 | else 60 | sips -Z 58 ${BASE_FILE} --out ${outdir}/icon-small@2x.png 61 | fi 62 | 63 | # iPhone 6s Plus and iPhone 6 Plus (@3x) 推奨 64 | if [ -e "${outdir}/icon-small@3x.png" ]; then 65 | echo "icon-small@3x.png はすでに存在しています。処理をスキップします。" 66 | else 67 | sips -Z 87 ${BASE_FILE} --out ${outdir}/icon-small@3x.png 68 | fi 69 | 70 | #---------------------------------------------------------------------- 71 | # iPhone Spotlight iOS 7-9 72 | 73 | # iPhone 5(@2x) 推奨 74 | # iPhone 4s(@2x) 推奨 75 | if [ -e "${outdir}/icon-40@2x.png" ]; then 76 | echo "icon-40@2x.png はすでに存在しています。処理をスキップします。" 77 | else 78 | sips -Z 80 ${BASE_FILE} --out ${outdir}/icon-40@2x.png 79 | fi 80 | 81 | # iPhone 6s, iPhone 6(@2x) 推奨 82 | if [ -e "${outdir}/icon-40@3x.png" ]; then 83 | echo "icon-40@3x.png はすでに存在しています。処理をスキップします。" 84 | else 85 | sips -Z 120 ${BASE_FILE} --out ${outdir}/icon-40@3x.png 86 | fi 87 | 88 | # iPhone App iOS 5,6 89 | if [ -e "${outdir}/icon.png" ]; then 90 | echo "icon.png はすでに存在しています。処理をスキップします。" 91 | else 92 | sips -Z 57 ${BASE_FILE} --out ${outdir}/icon.png 93 | fi 94 | 95 | if [ -e "${outdir}/icon@2x.png" ]; then 96 | echo "icon@2x.png はすでに存在しています。処理をスキップします。" 97 | else 98 | sips -Z 114 ${BASE_FILE} --out ${outdir}/icon@2x.png 99 | fi 100 | 101 | #---------------------------------------------------------------------- 102 | #iPhone App iOS 7-9 103 | 104 | # iPhone 6s,iPhone 6, and iPhone 5(@2x) 必須 105 | # iPhone 4s(@2x) 必須 106 | if [ -e "${outdir}/icon-60@2x.png" ]; then 107 | echo "icon-60@2x.png はすでに存在しています。処理をスキップします。" 108 | else 109 | sips -Z 120 ${BASE_FILE} --out ${outdir}/icon-60@2x.png 110 | fi 111 | 112 | # iPhone 6s Plus and iPhone 6 Plus (@3x) 必須 113 | # iPhone 6s Plus and iPhone 6 Plus (@3x) Spotlight search results icon 推奨 114 | if [ -e "${outdir}/icon-60@3x.png" ]; then 115 | echo "icon-60@3x.png はすでに存在しています。処理をスキップします。" 116 | else 117 | sips -Z 180 ${BASE_FILE} --out ${outdir}/icon-60@3x.png 118 | fi 119 | 120 | #---------------------------------------------------------------------- 121 | # iPad Settings iOS 5-9 122 | 123 | # iPad 2 and iPad mini(@1x) 推奨 124 | if [ -e "${outdir}/icon-small.png" ]; then 125 | echo "icon-small.png はすでに存在しています。処理をスキップします。" 126 | else 127 | sips -Z 29 ${BASE_FILE} --out ${outdir}/icon-small.png 128 | fi 129 | 130 | # iPad and iPad mini(@2x) 推奨 131 | # iPad Pro(@2x) 推奨 132 | if [ -e "${outdir}/icon-small@2x.png" ]; then 133 | echo "icon-small@2x.png はすでに存在しています。処理をスキップします。" 134 | else 135 | sips -Z 58 ${BASE_FILE} --out ${outdir}/icon-small@2x.png 136 | fi 137 | 138 | #---------------------------------------------------------------------- 139 | # iPad Spotlight iOS 7-9 140 | 141 | # iPad 2 and iPad mini(@1x) 推奨 ※ただしドキュメントでは120x120サイズとなっている。 142 | if [ -e "${outdir}/icon-40.png" ]; then 143 | echo "icon-40.png はすでに存在しています。処理をスキップします。" 144 | else 145 | sips -Z 40 ${BASE_FILE} --out ${outdir}/icon-40.png 146 | fi 147 | 148 | # iPad and iPad mini(@2x) 推奨 ※ただしドキュメントでは180x180サイズとなっている。 149 | # iPad Pro(@2x) 推奨 ※ただしドキュメントでは180x180サイズとなっている。 150 | if [ -e "${outdir}/icon-40@2x.png" ]; then 151 | echo "icon-40@2x.png はすでに存在しています。処理をスキップします。" 152 | else 153 | sips -Z 80 ${BASE_FILE} --out ${outdir}/icon-40@2x.png 154 | fi 155 | 156 | #---------------------------------------------------------------------- 157 | # iPad Spotlight iOS 5,6 158 | 159 | if [ -e "${outdir}/icon-50.png" ]; then 160 | echo "icon-50.png はすでに存在しています。処理をスキップします。" 161 | else 162 | sips -Z 50 ${BASE_FILE} --out ${outdir}/icon-50.png 163 | fi 164 | 165 | if [ -e "${outdir}/icon-50@2x.png" ]; then 166 | echo "icon-50@2x.png はすでに存在しています。処理をスキップします。" 167 | else 168 | sips -Z 100 ${BASE_FILE} --out ${outdir}/icon-50@2x.png 169 | fi 170 | 171 | #---------------------------------------------------------------------- 172 | # iPad App iOS 5,6 173 | 174 | if [ -e "${outdir}/icon-72.png" ]; then 175 | echo "icon-72.png はすでに存在しています。処理をスキップします。" 176 | else 177 | sips -Z 72 ${BASE_FILE} --out ${outdir}/icon-72.png 178 | fi 179 | 180 | if [ -e "${outdir}/icon-72@2x.png" ]; then 181 | echo "icon-72@2x.png はすでに存在しています。処理をスキップします。" 182 | else 183 | sips -Z 144 ${BASE_FILE} --out ${outdir}/icon-72@2x.png 184 | fi 185 | 186 | #---------------------------------------------------------------------- 187 | # iPad App iOS 7-9 188 | 189 | # iPad 2 and iPad mini(@1x) 必須 190 | if [ -e "${outdir}/icon-76.png" ]; then 191 | echo "icon-76.png はすでに存在しています。処理をスキップします。" 192 | else 193 | sips -Z 76 ${BASE_FILE} --out ${outdir}/icon-76.png 194 | fi 195 | 196 | # iPad and iPad mini(@2x) 必須 197 | if [ -e "${outdir}/icon-76@2x.png" ]; then 198 | echo "icon-76@2x.png はすでに存在しています。処理をスキップします。" 199 | else 200 | sips -Z 152 ${BASE_FILE} --out ${outdir}/icon-76@2x.png 201 | fi 202 | 203 | #---------------------------------------------------------------------- 204 | # iPad Pro App iOS 9 205 | 206 | # iPad Pro(@2x) 必須 207 | if [ -e "${outdir}/icon-83.5@2x.png" ]; then 208 | echo "icon-83.5@2x.png はすでに存在しています。処理をスキップします。" 209 | else 210 | sips -Z 167 ${BASE_FILE} --out ${outdir}/icon-83.5@2x.png 211 | fi 212 | 213 | #====================================================================== 214 | # Android 215 | #====================================================================== 216 | 217 | # 出力ディレクトリの生成 218 | outdir="Android" 219 | mkdir -p $outdir 220 | 221 | # xxxhdpi(〜640dpi) 222 | if [ -e "${outdir}/icon_192x192.png" ]; then 223 | echo "icon_192x192.png はすでに存在しています。\n" 224 | else 225 | sips -Z 192 ${BASE_FILE} --out ${outdir}/icon_192x192.png 226 | fi 227 | 228 | # xxhdpi(〜480dpi) 229 | if [ -e "${outdir}/icon_144x144.png" ]; then 230 | echo "icon_144x144.png はすでに存在しています。\n" 231 | else 232 | sips -Z 144 ${BASE_FILE} --out ${outdir}/icon_144x144.png 233 | fi 234 | 235 | # xhdpi(〜320dpi) 236 | if [ -e "${outdir}/icon_96x96.png" ]; then 237 | echo "icon_96x96.png はすでに存在しています。\n" 238 | else 239 | sips -Z 96 ${outdir}/icon_192x192.png --out ${outdir}/icon_96x96.png 240 | fi 241 | 242 | # hdpi(〜240dpi) 243 | if [ -e "${outdir}/icon_72x72.png" ]; then 244 | echo "icon_72x72.png はすでに存在しています。\n" 245 | else 246 | sips -Z 72 ${outdir}/icon_144x144.png --out ${outdir}/icon_72x72.png 247 | fi 248 | 249 | # mdpi(〜160dpi) 250 | if [ -e "${outdir}/icon_48x48.png" ]; then 251 | echo "icon_48x48.png はすでに存在しています。\n" 252 | else 253 | sips -Z 48 ${outdir}/icon_144x144.png --out ${outdir}/icon_48x48.png 254 | fi 255 | 256 | # ldpi(〜120dpi) 257 | if [ -e "${outdir}/icon_36x36.png" ]; then 258 | echo "icon_36x36.png はすでに存在しています。\n" 259 | else 260 | sips -Z 36 ${outdir}/icon_72x72.png --out ${outdir}/icon_36x36.png 261 | fi 262 | 263 | #----------------------------------- 264 | # 生成した各サイズのアイコンを一括リネーム 265 | #----------------------------------- 266 | 267 | androiddir="${outdir}/drawable-xxxhdpi" 268 | mkdir -m a+w -pv $androiddir 269 | cp -fv "${outdir}/icon_192x192.png" "${androiddir}/icon.png" 270 | 271 | androiddir="${outdir}/drawable-xxhdpi" 272 | mkdir -m a+w -pv $androiddir 273 | cp -fv "${outdir}/icon_144x144.png" "${androiddir}/icon.png" 274 | 275 | androiddir="${outdir}/drawable-xhdpi" 276 | mkdir -m a+w -pv $androiddir 277 | cp -fv "${outdir}/icon_96x96.png" "${androiddir}/icon.png" 278 | 279 | androiddir="${outdir}/drawable-hdpi" 280 | mkdir -m a+w -pv $androiddir 281 | cp -fv "${outdir}/icon_72x72.png" "${androiddir}/icon.png" 282 | 283 | androiddir="${outdir}/drawable-mdpi" 284 | mkdir -m a+w -pv $androiddir 285 | cp -fv "${outdir}/icon_48x48.png" "${androiddir}/icon.png" 286 | 287 | androiddir="${outdir}/drawable-ldpi" 288 | mkdir -m a+w -pv $androiddir 289 | cp -fv "${outdir}/icon_36x36.png" "${androiddir}/icon.png" 290 | -------------------------------------------------------------------------------- /create_ios_icons.command: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #このシェルスクリプトを実行した場所をカレントディレクトリにする(お約束) 3 | cd `dirname $0` 4 | 5 | # 出力ディレクトリの生成 6 | outdir="ios" 7 | mkdir -p $outdir 8 | 9 | #---------------------------------------------------------------------- 10 | # iTunes Artwork アイコン 11 | #---------------------------------------------------------------------- 12 | 13 | # iPhone6, iPhone6 Plus登場以降、全デバイスで1024x1024が必須となりました。↓ 14 | # https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html 15 | # ですので、このスクリプトでは最低でも、512x512サイズのアイコン画像がないと処理を終了するように修正しました。 16 | 17 | # App icon for the App Store (すべてのアプリで必須) 18 | if [ -e "icon_1024x1024.png" ]; then 19 | if [ -e "icon_512x512.png" ]; then 20 | echo "icon_512x512.png はすでに存在しています。処理をスキップします。" 21 | BASE_FILE="icon_1024x1024.png" 22 | else 23 | sips -Z 512 icon_1024x1024.png --out icon_512x512.png 24 | BASE_FILE="icon_1024x1024.png" 25 | fi 26 | fi 27 | 28 | if [ -e "icon_512x512.png" ]; then 29 | if [ -e "icon_1024x1024.png" ]; then 30 | echo "icon_1024x1024.png はすでに存在しています。処理をスキップします。" 31 | else 32 | sips -Z 1024 icon_1024x1024.png --out icon_512x512.png 33 | BASE_FILE="icon_512x512.png" 34 | fi 35 | else 36 | echo "iTunes Artworkに設定できる適当なサイズが見つかりません。\niPhone6, iPhone6 Plus登場以降から、1024x1024が必須となりました。" 37 | exit 38 | fi 39 | 40 | #---------------------------------------------------------------------- 41 | # アプリアイコン(ファイル名) 42 | #---------------------------------------------------------------------- 43 | 44 | echo "BASE_ICON: " 45 | echo ${BASE_FILE} 46 | 47 | # iPhone Spotlight - iOS 5,6 推奨 48 | # Settings - iOS 5-9 推奨 49 | if [ -e "${outdir}/icon-small.png" ]; then 50 | echo "icon-small.png はすでに存在しています。処理をスキップします。" 51 | else 52 | sips -Z 29 ${BASE_FILE} --out ${outdir}/icon-small.png 53 | fi 54 | 55 | # iPhone 6s,iPhone 6, and iPhone 5(@2x) 推奨 56 | # iPhone 4s(@2x) 推奨 57 | if [ -e "${outdir}/icon-small@2x.png" ]; then 58 | echo "icon-small@2x.png はすでに存在しています。処理をスキップします。" 59 | else 60 | sips -Z 58 ${BASE_FILE} --out ${outdir}/icon-small@2x.png 61 | fi 62 | 63 | # iPhone 6s Plus and iPhone 6 Plus (@3x) 推奨 64 | if [ -e "${outdir}/icon-small@3x.png" ]; then 65 | echo "icon-small@3x.png はすでに存在しています。処理をスキップします。" 66 | else 67 | sips -Z 87 ${BASE_FILE} --out ${outdir}/icon-small@3x.png 68 | fi 69 | 70 | #---------------------------------------------------------------------- 71 | # iPhone Spotlight iOS 7-9 72 | 73 | # iPhone 5(@2x) 推奨 74 | # iPhone 4s(@2x) 推奨 75 | if [ -e "${outdir}/icon-40@2x.png" ]; then 76 | echo "icon-40@2x.png はすでに存在しています。処理をスキップします。" 77 | else 78 | sips -Z 80 ${BASE_FILE} --out ${outdir}/icon-40@2x.png 79 | fi 80 | 81 | # iPhone 6s, iPhone 6(@2x) 推奨 82 | if [ -e "${outdir}/icon-40@3x.png" ]; then 83 | echo "icon-40@3x.png はすでに存在しています。処理をスキップします。" 84 | else 85 | sips -Z 120 ${BASE_FILE} --out ${outdir}/icon-40@3x.png 86 | fi 87 | 88 | # iPhone App iOS 5,6 89 | if [ -e "${outdir}/icon.png" ]; then 90 | echo "icon.png はすでに存在しています。処理をスキップします。" 91 | else 92 | sips -Z 57 ${BASE_FILE} --out ${outdir}/icon.png 93 | fi 94 | 95 | if [ -e "${outdir}/icon@2x.png" ]; then 96 | echo "icon@2x.png はすでに存在しています。処理をスキップします。" 97 | else 98 | sips -Z 114 ${BASE_FILE} --out ${outdir}/icon@2x.png 99 | fi 100 | 101 | #---------------------------------------------------------------------- 102 | #iPhone App iOS 7-9 103 | 104 | # iPhone 6s,iPhone 6, and iPhone 5(@2x) 必須 105 | # iPhone 4s(@2x) 必須 106 | if [ -e "${outdir}/icon-60@2x.png" ]; then 107 | echo "icon-60@2x.png はすでに存在しています。処理をスキップします。" 108 | else 109 | sips -Z 120 ${BASE_FILE} --out ${outdir}/icon-60@2x.png 110 | fi 111 | 112 | # iPhone 6s Plus and iPhone 6 Plus (@3x) 必須 113 | # iPhone 6s Plus and iPhone 6 Plus (@3x) Spotlight search results icon 推奨 114 | if [ -e "${outdir}/icon-60@3x.png" ]; then 115 | echo "icon-60@3x.png はすでに存在しています。処理をスキップします。" 116 | else 117 | sips -Z 180 ${BASE_FILE} --out ${outdir}/icon-60@3x.png 118 | fi 119 | 120 | #---------------------------------------------------------------------- 121 | # iPad Settings iOS 5-9 122 | 123 | # iPad 2 and iPad mini(@1x) 推奨 124 | if [ -e "${outdir}/icon-small.png" ]; then 125 | echo "icon-small.png はすでに存在しています。処理をスキップします。" 126 | else 127 | sips -Z 29 ${BASE_FILE} --out ${outdir}/icon-small.png 128 | fi 129 | 130 | # iPad and iPad mini(@2x) 推奨 131 | # iPad Pro(@2x) 推奨 132 | if [ -e "${outdir}/icon-small@2x.png" ]; then 133 | echo "icon-small@2x.png はすでに存在しています。処理をスキップします。" 134 | else 135 | sips -Z 58 ${BASE_FILE} --out ${outdir}/icon-small@2x.png 136 | fi 137 | 138 | #---------------------------------------------------------------------- 139 | # iPad Spotlight iOS 7-9 140 | 141 | # iPad 2 and iPad mini(@1x) 推奨 ※ただしドキュメントでは120x120サイズとなっている。 142 | if [ -e "${outdir}/icon-40.png" ]; then 143 | echo "icon-40.png はすでに存在しています。処理をスキップします。" 144 | else 145 | sips -Z 40 ${BASE_FILE} --out ${outdir}/icon-40.png 146 | fi 147 | 148 | # iPad and iPad mini(@2x) 推奨 ※ただしドキュメントでは180x180サイズとなっている。 149 | # iPad Pro(@2x) 推奨 ※ただしドキュメントでは180x180サイズとなっている。 150 | if [ -e "${outdir}/icon-40@2x.png" ]; then 151 | echo "icon-40@2x.png はすでに存在しています。処理をスキップします。" 152 | else 153 | sips -Z 80 ${BASE_FILE} --out ${outdir}/icon-40@2x.png 154 | fi 155 | 156 | #---------------------------------------------------------------------- 157 | # iPad Spotlight iOS 5,6 158 | 159 | if [ -e "${outdir}/icon-50.png" ]; then 160 | echo "icon-50.png はすでに存在しています。処理をスキップします。" 161 | else 162 | sips -Z 50 ${BASE_FILE} --out ${outdir}/icon-50.png 163 | fi 164 | 165 | if [ -e "${outdir}/icon-50@2x.png" ]; then 166 | echo "icon-50@2x.png はすでに存在しています。処理をスキップします。" 167 | else 168 | sips -Z 100 ${BASE_FILE} --out ${outdir}/icon-50@2x.png 169 | fi 170 | 171 | #---------------------------------------------------------------------- 172 | # iPad App iOS 5,6 173 | 174 | if [ -e "${outdir}/icon-72.png" ]; then 175 | echo "icon-72.png はすでに存在しています。処理をスキップします。" 176 | else 177 | sips -Z 72 ${BASE_FILE} --out ${outdir}/icon-72.png 178 | fi 179 | 180 | if [ -e "${outdir}/icon-72@2x.png" ]; then 181 | echo "icon-72@2x.png はすでに存在しています。処理をスキップします。" 182 | else 183 | sips -Z 144 ${BASE_FILE} --out ${outdir}/icon-72@2x.png 184 | fi 185 | 186 | #---------------------------------------------------------------------- 187 | # iPad App iOS 7-9 188 | 189 | # iPad 2 and iPad mini(@1x) 必須 190 | if [ -e "${outdir}/icon-76.png" ]; then 191 | echo "icon-76.png はすでに存在しています。処理をスキップします。" 192 | else 193 | sips -Z 76 ${BASE_FILE} --out ${outdir}/icon-76.png 194 | fi 195 | 196 | # iPad and iPad mini(@2x) 必須 197 | if [ -e "${outdir}/icon-76@2x.png" ]; then 198 | echo "icon-76@2x.png はすでに存在しています。処理をスキップします。" 199 | else 200 | sips -Z 152 ${BASE_FILE} --out ${outdir}/icon-76@2x.png 201 | fi 202 | 203 | #---------------------------------------------------------------------- 204 | # iPad Pro App iOS 9 205 | 206 | # iPad Pro(@2x) 必須 207 | if [ -e "${outdir}/icon-83.5@2x.png" ]; then 208 | echo "icon-83.5@2x.png はすでに存在しています。処理をスキップします。" 209 | else 210 | sips -Z 167 ${BASE_FILE} --out ${outdir}/icon-83.5@2x.png 211 | fi 212 | -------------------------------------------------------------------------------- /icon_1024x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hibara/create-ios-all-icons-shellscript/42372258144319a6473dafcb5f23a5d92b1f96b1/icon_1024x1024.png --------------------------------------------------------------------------------