gimp-android-xdpi

Gimp plugin to write images and icons for all android densities

Github星跟蹤圖

gimp-android-xdpi

Gimp plugin to export images or icons for any android density :
gimpfu_android_xdpi.py

Plugin Screenshot

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 :

icon selection

Use the reference values for an app icon, 48px on mdpi :

Plugin Screenshot

  1. select your app res folder
  2. Pick drawable or mipmap as your export folder prefix
  3. type icon as the image base name
  4. select image DP width of 48
  5. select densities to export
  6. 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.

export result

主要指標

概覽
名稱與所有者ncornette/gimp-android-xdpi
主編程語言Python
編程語言Python (語言數: 1)
平台
許可證
所有者活动
創建於2012-04-20 14:37:21
推送於2018-06-28 00:56:01
最后一次提交2015-09-28 13:57:45
發布數0
用户参与
星數162
關注者數14
派生數19
提交數33
已啟用問題?
問題數7
打開的問題數2
拉請求數3
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?