Created
August 10, 2015 15:33
-
-
Save degt/cb549be32c4ddd2401d9 to your computer and use it in GitHub Desktop.
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 -e | |
# brew install imagemagick | |
# Ensure we're running in location of script. | |
cd "`dirname $0`" | |
for f in *; do | |
if [[ $f == *@3x* ]]; | |
then | |
echo "$f -> ${f//@3x/@2x}, ${f//@3x/}" | |
convert "$f" -resize 66.66666% "${f//@3x/@2x}" | |
convert "$f" -resize 33.33333% "${f//@3x/}" | |
fi | |
done | |
echo "Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment