{"id":22624360,"url":"https://github.com/leso-kn/svg2vd","last_synced_at":"2025-03-29T03:15:48.336Z","repository":{"id":100481143,"uuid":"327961992","full_name":"leso-kn/svg2vd","owner":"leso-kn","description":"Convert svg files to Android VectorDrawable (xml) – lean, java-free","archived":false,"fork":false,"pushed_at":"2021-01-17T18:56:05.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T13:12:37.732Z","etag":null,"topics":["android","android-vector","svg","xslt"],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leso-kn.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-08T16:57:01.000Z","updated_at":"2021-01-17T18:56:07.000Z","dependencies_parsed_at":"2023-05-15T04:00:15.933Z","dependency_job_id":null,"html_url":"https://github.com/leso-kn/svg2vd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leso-kn%2Fsvg2vd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leso-kn%2Fsvg2vd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leso-kn%2Fsvg2vd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leso-kn%2Fsvg2vd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leso-kn","download_url":"https://codeload.github.com/leso-kn/svg2vd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131335,"owners_count":20728303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-vector","svg","xslt"],"created_at":"2024-12-09T00:13:45.138Z","updated_at":"2025-03-29T03:15:48.313Z","avatar_url":"https://github.com/leso-kn.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svg2vd\n\nConvert svg files to Android VectorDrawable (xml).\n\nLean, java-free alternative to the 'Import SVG' feature in AndroidStudio.\n\n## About\n\nThis repository contains an XSLT stylesheet, that can be used to convert svg files to Android's xml-based Vector Drawable format.\n\nIt was inspired by the work of [Rob Gilbert](https://github.com/fox015/svg2vectordrawable).\n\n## Usage\n\n```bash\n\u003e xsltproc [-o output.xml] convert.xsl [input1.svg ...]\n```\n\nOn Ubuntu for example, the `xsltproc` command is available via apt.\n\nOf course, any other XSLT processor may be used just as well. The stylesheet does not require any XSLT 2.0 features.\n\n## Features\n\nCurrently supports:\n\n* Most common shapes\n  * Paths\n  * Polygons\n  * Rectangles\n  * Circles\n  * Ellipses\n  * Lines\n  * SVG Groups (group name and transform)\n* Most common attributes\n  * Fill color\n  * Stroke color / width / linecaps\n  * Draw order\n  * Attribute inheritance\n* Gradients\n  * Linear\n* Colors and transparency\n* Different SVG formats\n  * \"Regular\" SVG\n  * Inkscape SVG\n\n## Known issues\n\n- Some svg features may not be supported (yet)\n\n* In a very rare case with `\u003cpolygon\u003e` elements, the path-data may not be converted correctly\n  * This results in the 'out-breaking' of single path-points\n  * To me this happened only once, with a huge 2.5MB test svg file (exported from Adobe Illustrator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleso-kn%2Fsvg2vd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleso-kn%2Fsvg2vd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleso-kn%2Fsvg2vd/lists"}