Skip to content

Instantly share code, notes, and snippets.

@GregPK
Created May 13, 2015 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GregPK/1a7340622a1d96b8ef33 to your computer and use it in GitHub Desktop.
Save GregPK/1a7340622a1d96b8ef33 to your computer and use it in GitHub Desktop.
given an appicon.png file in the `platform/android/res` directory of the Titanium project, will generate icons with proper sizes for all devices
convert appicon.png -resize 192x192\! drawable-xxxhdpi/appicon.png && \
convert appicon.png -resize 144x144\! drawable-xxhdpi/appicon.png && \
convert appicon.png -resize 96x96\! drawable-xhdpi/appicon.png && \
convert appicon.png -resize 72x72\! drawable-hdpi/appicon.png && \
convert appicon.png -resize 48x48\! drawable-mdpi/appicon.png && \
convert appicon.png -resize 36x36\! drawable-ldpi/appicon.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment