Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Generate WatchKit app icons from a 1024px icon
for size in 24 27.5 29 40 44 86 98; do pixel_size=`echo $size \* 2 | bc`; convert -resize $pixel_size 1024-square.png icon-$size@2x.png; done
convert -resize $(expr 29 \* 3) 1024-square.png icon-29@3x.png
for i in icon-*.png ; do convert "$i" -background black -alpha remove -alpha off "${i}" ; done
/Applications/ icon-*.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.