Skip to content

Instantly share code, notes, and snippets.

@brutella
Created November 5, 2014 17:11
Show Gist options
  • Save brutella/4b73a3cae32c2508accf to your computer and use it in GitHub Desktop.
Save brutella/4b73a3cae32c2508accf to your computer and use it in GitHub Desktop.
Create iOS 8 app icons
#! /bin/sh
# Usage
# ./generate-icons.sh ./AppIcon.png
FILE=$1
DIR=$(dirname $FILE)
convert -resize '120x120' ${FILE} ${DIR}/iPhone@2x.png
convert -resize '180x180' ${FILE} ${DIR}/iPhone@3x.png
convert -resize '58x58' ${FILE} ${DIR}/iPad_Settings@2x.png
convert -resize '58x58' ${FILE} ${DIR}/iPhone_Settings@2x.png
convert -resize '80x80' ${FILE} ${DIR}/iPad_Spotlight@2x.png
convert -resize '80x80' ${FILE} ${DIR}/iPhone_Spotlight@2x.png
convert -resize '76x76' ${FILE} ${DIR}/iPad.png
convert -resize '152x152' ${FILE} ${DIR}/iPad@2x.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment