Giter Site home page Giter Site logo

gimp-android-xdpi's Introduction

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

gimp-android-xdpi's People

Contributors

dandalf avatar douglasjunior avatar ncornette avatar niqueco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gimp-android-xdpi's Issues

Webp

Anyway you can tweak this and make it work to output webp images? thanks!

support xxhdpi

with the release of devices with 1080p displays (HTC One, Galaxy S4), it would be great to have this scale option too.

Works on MacOsx?

I'm trying to use the plugin on MacOsx Yosemite. I'm using Gimp 2.8.

I'm trying to copy on: Macintosh HD ▸ Users ▸ douglas ▸ Library ▸ Application Support ▸ GIMP ▸ 2.8 ▸ plug-ins

And: Macintosh HD ▸ Applications ▸ GIMP.app ▸ Contents ▸ Resources ▸ lib ▸ gimp ▸ 2.0 ▸ plug-ins

But not appear Android option in the Filters menu.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.