android-iconizer
GUI and CLI Tool to easily create resized copies of an Image to use as an android resource.
How it works
- Receives any valid image file as an input.
- Creates android drawable folder structure and puts each corresponding image on it's place.
Usage
gui:
- Open
bin/
folder.- Unix: Execute
android-iconizer-gui.sh
- Windows: Execute
android-iconizer-gui.cmd
- Unix: Execute
- Open
cli:
-i(--input)
* Absolute path of icon to resize.-o(--output)
Absolute to save the resized images to.-n(--name)
Output filename of the icon.-t(--type)[contextual,actionbar,notification]
** Type of icon that specifies the resolution used to resize the icon (default is contextual).
java -jar android-iconizer.jar -i "C:/image.png" -o "C:/output/" -name "my-awesome-icon" -t contextual
* required
** type: This specifies the actual resolution that is going to be used to resize the icon, each type corresponds to a different resolution set as described in:
- http://www.wiseman-designs.com/wp-content/uploads/2011/09/Android-Icon-Guidelines-Poster.pdf
- http://iconhandbook.co.uk/reference/chart/android/
Build
To build use the following maven cli command:
mvn clean install assembly:single
It will generate two files:
- android-iconizer-{version}.jar: No dependency binary. (won't work unless ou set the classpath with all dependencies manually)
- android-iconizer.jar: Binary with library dependencies embedded. This is the actual executable.
Dependencies
Special thanks to the creators of these libraries:
- imgscalr by thebuzzmedia
- args4j by kohsuke
Log in or sign up for Devpost to join the conversation.