Created
July 7, 2016 18:50
-
-
Save Cassie-von-Clausewitz/1737b94694d3da1d67c8d659326efc58 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
echo Converting $1 | |
mkdir -p res/drawable-mdpi | |
mkdir -p res/drawable-hdpi | |
mkdir -p res/drawable-xhdpi | |
mkdir -p res/drawable-xxhdpi | |
m=48 | |
h=72 | |
x=96 | |
xx=144 | |
convert $1 -resize ${m}x${m} res/drawable-mdpi/$1 | |
convert $1 -resize ${h}x${h} res/drawable-hdpi/$1 | |
convert $1 -resize ${x}x${x} res/drawable-xhdpi/$1 | |
convert $1 -resize ${xx}x${xx} res/drawable-xxhdpi/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment