Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Created January 20, 2013 20:22
Show Gist options
  • Save memoryleak/4581433 to your computer and use it in GitHub Desktop.
Save memoryleak/4581433 to your computer and use it in GitHub Desktop.
#!/bin/bash
filename=$(basename "$1")
sips -z 64 64 $1 --out /res/drawable-xhdpi/$filename
sips -z 45 45 $1 --out /res/drawable-hdpi/$filename
sips -z 32 32 $1 --out /res/drawable-mdpi/$filename
sips -z 16 16 $1 --out /res/drawable-ldpi/$filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment