Python script to automatically generate sized icons for standard Android densities
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Auto-generate Android icons for multiple densities

Frustrated with resizing icons for multiple screen orientations and densities?  This python script will automatically generate optimized icons for your Android app for all 'standard' densities! 

Simply run the script with the path to the image you want to convert into multiple densities: icon_file_to_convert.png

The script will generate the standard Android res/ directory structure (res/drawable-ldpi, etc) and rename and resize the image to the suggested Android developer practices (eg. /res/drawable-ldpi/ic_launcher_icon). Naming and sizing based on:

The script requires only python and imagemagick.  On Ubuntu compatible systems, this can be done using apt:

sudo apt-get install python2.6 imagemagick