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:
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.
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.