Two weeks ago I updated the android_drawable_generator(adg) with a new set of features and a more clean documentation. I posted this on the Android Community on Google+ and it was very well received. You can find the tool at:

https://github.com/cesarramirez/ADG-Android_Drawable_Generator

What this tool is:

When developing an Android app, you are required to design images with different densities for all the different screen resolutions. Once you have your base high-resolution image, you need to scale to four different categories(low, mid, high and extra high). The mid size will be a base size for all other sizes. The process of generating this images can be tedious as it is just a trivial process. Here is where adg comes in handy.

Two run adg you need at least two parameters, original image and base size. With a command as simple a:

adg image.png 30;

You will have the four folders for all resolutions with the image correctly resized. You can even do:

adg image.png 30 –outdir <you project folder>/res;

And the output images will be places on the right directory.

If you are interested, read the README located in github and you will find the complete list of options and examples.

Changes:

The structure of the script was completely rewritten, I reorganized the Getopt for a better and more clear set of arguments and flags. I also introduced a more modular aspect for the script, allowing the user to disable or enable features or event pass parameters for variables such as output location or output name.

Another big change for me was that the script is documented with in-line comments and a Readme that describes almost all the feature.

 

Share →

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Sweet Captcha
Verify your real existence,
Drag the speaker to Mr. Director
  • captcha
  • captcha
  • captcha
  • captcha