Forked from https://github.com/ncornette/gimp-android-xdpi I hacked this GIMP python script and added support for xxhdpi. I think it works :-) https://github.com/gywst/gimp-android-xdpi
Gimp plugin to export images or icons for all android densities. Just select the area to export, then run the plugin from Filters/Android/Write Android XDPIs... Images will be written to your drawable-ldpi / mdpi / hdpi / xhdpi folders. You can select a custom target width so you don't have to resize your picture.
To write you app icon directly from you full size picture, use these parameters :
- select your app res folder
- type
icon
as the image base name - select a image width of
48
- select a density of
mdpi
- select image format
png
Icon or Image resources for all densities will be scaled and written accordingly. You will be warned if an image has been upscaled
- Put this file into your gimp plugin directory, ie: ~/.gimp-2.6/plug-ins/gimpfu_android_xdpi.py
- Restart Gimp
- Run script via Filters/Android/Write Android XDPIs...