Skip to content

Instantly share code, notes, and snippets.

@gregszero
Created December 15, 2016 19:18
Show Gist options
  • Save gregszero/bd136f8eac5745e6ef6c49fea03ef6ab to your computer and use it in GitHub Desktop.
Save gregszero/bd136f8eac5745e6ef6c49fea03ef6ab to your computer and use it in GitHub Desktop.
#! /bin/bash
#
cd $(dirname "$0")
base=1024x1024.png
if [ -z $base ]
then
echo No argument given
else
##
## iOS files
convert "$base" -resize 29x29! "Icon-Small.png" # iPad Settings
convert "$base" -resize 40x40! "Icon-Small-40.png" # iPad Spotlight results
convert "$base" -resize 167x167! "Icon-83.5@2x.png" # iPad Pro App Icon for Retina display (@2x)
convert "$base" -resize 80x80! "Icon-40@2.png" # iPad Spotlight results
convert "$base" -resize 120x120! "Icon-40@3.png" # iPad Spotlight results
convert "$base" -resize 29x29! "Icon-29.png" # iPad Spotlight results
convert "$base" -resize 58x58! "Icon-29@2.png" # iPad Spotlight results
convert "$base" -resize 87x87! "Icon-29@3.png" # iPad Spotlight results
convert "$base" -resize 50x50! "Icon-Small-50.png" #
convert "$base" -resize 57x57! "Icon.png" #
convert "$base" -resize 58x58! "Icon-Small@2x.png" #
convert "$base" -resize 60x60! "Icon-60.png" #
convert "$base" -resize 72x72! "Icon-72.png" #
convert "$base" -resize 76x76! "Icon-76.png" #
convert "$base" -resize 80x80! "Icon-Small-40@2x.png" #
convert "$base" -resize 100x100! "Icon-Small-50@2x.png" #
convert "$base" -resize 114x114! "Icon@2x.png" #
convert "$base" -resize 120x120! "Icon-60@2x.png" #
convert "$base" -resize 144x144! "Icon-72@2x.png" #
convert "$base" -resize 152x152! "Icon-76@2x.png" #
convert "$base" -resize 180x180! "Icon-60@3x.png" #
convert "$base" -resize 512x512! "iTunesArtwork" #
convert "$base" -resize 1024x1024! "iTunesArtwork@2x" #
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment