https://github.com/static-codes/androiddrawabletosvg
A pure python utility to convert an AOSP licensed DrawableVector to an SVG.
https://github.com/static-codes/androiddrawabletosvg
android android-vector svg svg-converter vector-graphics
Last synced: 4 days ago
JSON representation
A pure python utility to convert an AOSP licensed DrawableVector to an SVG.
- Host: GitHub
- URL: https://github.com/static-codes/androiddrawabletosvg
- Owner: Static-Codes
- License: mit
- Created: 2026-06-04T02:53:04.000Z (9 days ago)
- Default Branch: main
- Last Pushed: 2026-06-04T02:55:29.000Z (9 days ago)
- Last Synced: 2026-06-04T04:24:16.553Z (9 days ago)
- Topics: android, android-vector, svg, svg-converter, vector-graphics
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidDrawableToSVG
AndroidDrawableToSVG **(ADAS)** is a simple and lightweight utility to convert an Android DrawableVector to a universal SVG.
## Requirements
ADAS only requires Python 3.9+, no additional packages or dependencies are needed!
## Quick Start Guide:
Once you've cloned the repository, you can test **ADAS** by executing:
#### Windows
```bash
python adas.py -d tests/quick_start.xml -o example.svg
```
#### Linux/MacOS
```bash
python3 adas.py -d tests/quick_start.xml -o example.svg
```
Once you have executed the above command, you should see a file called `example.svg` containing a checkmark.
## Advanced Usage:
#### Windows
```bash
python adas.py [OPTIONS]
```
#### Linux/MacOS
```bash
python3 adas.py [OPTIONS]
```
### Options
| Argument | Description | Required |
| :--- | :--- | :--- |
| `-h`, `--help` | Displays more detailed information on supported commands. | No |
| `-d`, `--drawable=` | Defines the drawable you wish to convert. | **Yes** |
| `-o`, `--output=` | Defines the filename/filepath to used for the converted SVG. | **Yes** |
| `-c`, `--colors=` | Defines the filepath to used for resolving color references. | **No** |
| `-s`, `--strings=` | Defines the filepath to used for resolving string references. | **No** |
| `-v`, `--version=` | Prints the current version of ADAS. | No |
## Known Limitations/Issues
For the complete list of known limitations and issues, please see [this](LIMITATIONS.md) file.
## Future QoL Plans
- Addressing the Limitations/Issues above.
- Replacing `getopt` with `argparse` for easier maintainability.