Skip to content

Instantly share code, notes, and snippets.

@weverb2
Created November 14, 2016 22:05
Show Gist options
  • Save weverb2/6587f848d6b566fbd59ffdbcd8021c88 to your computer and use it in GitHub Desktop.
Save weverb2/6587f848d6b566fbd59ffdbcd8021c88 to your computer and use it in GitHub Desktop.
Create iOS Tab Bar icons from images
!#/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