Gimp plugin to write images and icons for all android densities
Gimp plugin to export images or icons for any android density : gimpfu_android_xdpi.py
~/.gimp-2.6/plug-ins/gimpfu_android_xdpi.py
chmod +x gimpfu_android_xdpi.py
)To write you app icon directly from you full size picture, select area for your icon :
Use the reference values for an app icon, 48px on mdpi :
icon
as the image base name48
png
Icon or Image resources for all densities will be scaled and written accordingly, except that by default upscaled images won't be upscaled. You can force creating upscaled images by using the appropiate option.