AndroidDrawableToSVG (ADAS) is a simple and lightweight utility to convert an Android DrawableVector to a universal SVG.
ADAS only requires Python 3.9+, no additional packages or dependencies are needed!
Once you've cloned the repository, you can test ADAS by executing:
python adas.py -d tests/quick_start.xml -o example.svgpython3 adas.py -d tests/quick_start.xml -o example.svgOnce you have executed the above command, you should see a file called example.svg containing a checkmark.
python adas.py [OPTIONS]python3 adas.py [OPTIONS]| Argument | Description | Required |
|---|---|---|
-h, --help |
Displays more detailed information on supported commands. | No |
-d, --drawable=<path/to/drawable.xml> |
Defines the drawable you wish to convert. | Yes |
-o, --output=<path/to/output.svg> |
Defines the filename/filepath to used for the converted SVG. | Yes |
-c, --colors=<path/to/colors.xml> |
Defines the filepath to used for resolving color references. | No |
-s, --strings=<path/to/strings.xml> |
Defines the filepath to used for resolving string references. | No |
-v, --version=<version> |
Prints the current version of ADAS. | No |
For the complete list of known limitations and issues, please see this file.
- Addressing the Limitations/Issues above.
- Replacing
getoptwithargparsefor easier maintainability.