Skip to content

Static-Codes/AndroidDrawableToSVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AndroidDrawableToSVG

AndroidDrawableToSVG (ADAS) is a simple utility to convert an Android DrawableVector to a universal SVG.

Requirements

ADAS only requires Python 3.X, no additional packages or dependencies are needed!

Usage:

ADAS is both lightweight and user-friendly!

Windows

python adas.py [OPTIONS]

Linux/MacOS

python3 adas.py [OPTIONS]

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

Try it yourself

Once you've cloned the repository, you can test ADAS by executing:

Windows

python adas.py -d example.xml -o example.svg

Linux/MacOS

python3 adas.py -d example.xml -o example.svg

TODO

  • Add color mapping (map @color/X to #hex)
  • Replace getopt with argparse

About

A pure python utility to convert an AOSP licensed DrawableVector to an SVG.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages