Created
November 14, 2016 22:05
-
-
Save weverb2/6587f848d6b566fbd59ffdbcd8021c88 to your computer and use it in GitHub Desktop.
Create iOS Tab Bar icons from images
This file contains 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 | |
for var in "$@" | |
do | |
filename="${var%.*}" | |
extension="${var##*.}" | |
sips --resampleHeightWidth 75 75 "$var" --out tabbar_"$filename"@3x."$extension" | |
sips --resampleHeightWidth 50 50 "$var" --out tabbar_"$filename"@2x."$extension" | |
sips --resampleHeightWidth 25 25 "$var" --out tabbar_"$filename"."$extension" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment