AndroidDrawableToSVG (ADAS) is a simple utility to convert an Android DrawableVector to a universal SVG.
ADAS only requires Python 3.X, no additional packages or dependencies are needed!
ADAS is both lightweight and user-friendly!
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 to used for the converted SVG. | Yes |
-v, --version=<version> |
Prints the version of ADAS. | No |
Once you've cloned the repository, you can test ADAS by executing:
python adas.py -d example.xml -o example.svgpython3 adas.py -d example.xml -o example.svg- Add color mapping (map
@color/Xto#hex) - Replace
getoptwithargparse