SHARE
TWEET

Untitled

a guest Apr 21st, 2017 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4.  
  5. FILE="$DIR/../Design/appicon-foreground.svg"
  6. OUTPUT_LOCATION="$DIR/../iTunes"
  7.  
  8. # convert svg asset to png
  9. convert -density 2000 -resize 1024x1024 -background none $FILE appicon-foreground.png
  10.  
  11. # create a linear gradient background
  12. convert -size 1024x1024 -define gradient:direction=southwest gradient:yellow-green linear_gradient.png
  13.  
  14. # overlay monkey on background
  15. composite -gravity center appicon-foreground.png linear_gradient.png $OUTPUT_LOCATION/iTunesArtwork@2x.png
  16.  
  17. # delete intermediary assets
  18. rm linear_gradient.png
  19. rm appicon-foreground.png
RAW Paste Data
Top