gimp-android-xdpi
Gimp plugin to export images or icons for any android density : gimpfu_android_xdpi.py
Installation
- Download the script gimpfu_android_xdpi.py,
save into your gimp plugin directory, ie:
~/.gimp-2.6/plug-ins/gimpfu_android_xdpi.py
- On Linux or MacOSX you need to set the script file to be executable. (
chmod +x gimpfu_android_xdpi.py
) - Restart Gimp
- Run script via Filters -> Android -> Write Android XDPIs...
Usage
- Select area to export.
- Run the plugin from Filters -> Android -> Write Android XDPIs...
- Enter the target DP width.
- Choose density folders to export to : ldpi / mdpi / hdpi / xhdpi / xxhdpi / xxxhdpi.
Example
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 :
- select your app res folder
- Pick drawable or mipmap as your export folder prefix
- type
icon
as the image base name - select image DP width of
48
- select densities to export
- select image format
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.