-
-
Save dp-singh/855d566156449c55d4b8 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 | |
# Ensure we're running in location of script. | |
cd "`dirname $0`" | |
for f in *; do | |
if [[ $f == *.png ]]; | |
then | |
echo "...$f" | |
convert $f -resize 37.5% ../res/drawable-ldpi/$f | |
convert $f -resize 50% ../res/drawable-mdpi/$f | |
convert $f -resize 75% ../res/drawable-hdpi/$f | |
convert $f -resize 100% ../res/drawable-xhdpi/$f | |
fi | |
done | |
echo "Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment