Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RohanTalip/VectorDrawable2Svg
Converts Android VectorDrawable .xml files to .svg files
https://github.com/RohanTalip/VectorDrawable2Svg
android svg vectordrawable xml
Last synced: 3 months ago
JSON representation
Converts Android VectorDrawable .xml files to .svg files
- Host: GitHub
- URL: https://github.com/RohanTalip/VectorDrawable2Svg
- Owner: RohanTalip
- License: mit
- Created: 2018-12-17T20:09:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T01:17:32.000Z (almost 2 years ago)
- Last Synced: 2024-07-30T21:06:12.640Z (6 months ago)
- Topics: android, svg, vectordrawable, xml
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 59
- Watchers: 3
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VectorDrawable2Svg
## Introduction
The VectorDrawable2Svg.py Python script converts Android VectorDrawable `.xml`
files to `.svg` files.This repository was forked from
https://gitlab.com/Hyperion777/VectorDrawable2Svg to add handling of indirect
colour references (e.g. in color.xml files) since that repository did not seem
to be actively maintained (based on the unaddressed issues and merge/pull
requests there at the time).## Usage
```shell
python3 VectorDrawable2Svg.py a.xml b.xml ...
``````shell
./VectorDrawable2Svg.py --color-xml-file=path/to/color.xml a.xml b.xml ...
``````shell
/path/to/VectorDrawable2Svg.py --viewbox-only a.xml b.xml ...
```The output .svg files are written in the same directory as the .xml files
(currently by simply replacing .xml with .svg in the filename).## Improvements
This Python script only supports some Android VectorDrawable attributes.Suggestions (or merge requests) for improvement are welcome.
## See also
- [vd2svg](https://github.com/neworld/vd2svg) - written in Kotlin