Skip to content

Instantly share code, notes, and snippets.

@Cassie-von-Clausewitz
Created July 7, 2016 18:50
Show Gist options
  • Save Cassie-von-Clausewitz/1737b94694d3da1d67c8d659326efc58 to your computer and use it in GitHub Desktop.
Save Cassie-von-Clausewitz/1737b94694d3da1d67c8d659326efc58 to your computer and use it in GitHub Desktop.
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