Last active
          October 30, 2017 15:26 
        
      - 
      
- 
        Save HeathHopkins/f3e5bac5f15ad686d3872bf19fb0115a to your computer and use it in GitHub Desktop. 
    Create all of the icon sizes needed by Apple devices (2016).
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | #! /bin/bash | |
| # place this script and your 1024x1024 icon in the same directory then run | |
| # usage sh makeicons.sh [nameof1024file.png] | |
| declare dir=$(pwd) | |
| declare -a sizes=( 16 20 29 32 40 48 50 55 57 58 60 64 72 76 80 87 88 100 114 120 128 144 152 167 172 180 196 256 512 1024 ) | |
| for i in "${sizes[@]}" | |
| do | |
| sips --resampleWidth "$i" "${dir}/${1}" --out "${dir}/Icon-$i.png" | |
| echo "$i" | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment