{"id":22359216,"url":"https://github.com/neworld/vd2svg","last_synced_at":"2025-04-09T20:04:23.009Z","repository":{"id":41293783,"uuid":"114039773","full_name":"neworld/vd2svg","owner":"neworld","description":"Android vector drawable to SVG converter","archived":false,"fork":false,"pushed_at":"2023-10-26T20:03:05.000Z","size":92,"stargazers_count":126,"open_issues_count":0,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:04:18.410Z","etag":null,"topics":["android-vector","cli","converter","svg"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neworld.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":"2017-12-12T21:13:26.000Z","updated_at":"2025-04-08T22:43:22.000Z","dependencies_parsed_at":"2025-01-01T03:21:52.046Z","dependency_job_id":null,"html_url":"https://github.com/neworld/vd2svg","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":"0.15000000000000002","last_synced_commit":"a81d4612352a1447efaefbed01d23c4633cb527a"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neworld%2Fvd2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neworld%2Fvd2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neworld%2Fvd2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neworld%2Fvd2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neworld","download_url":"https://codeload.github.com/neworld/vd2svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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-vector","cli","converter","svg"],"created_at":"2024-12-04T15:20:07.145Z","updated_at":"2025-04-09T20:04:22.979Z","avatar_url":"https://github.com/neworld.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/vd2svg.svg)](https://www.npmjs.com/package/vd2svg)\n[![Build Status](https://travis-ci.org/neworld/vd2svg.svg?branch=master)](https://travis-ci.org/neworld/vd2svg)\n\n### vd2svg\n\nAndroid vector drawable to SVG converter.\nThis tool could help you extract all android vectors to SVG and display in any file browser.\n\n### Installation\n\nEasiest way is to install via [NPM](https://www.npmjs.com/package/vd2svg)\n```bash\nnpm install vd2svg -g\n```\n\nAnother way is to clone this repo and install locally:\n\n```bash\n./gradlew jdeployInstall\n```\n\n### Usage\n\nThe program skips all non-vector xml.\n\n```bash\ncd ~/your/drawable/folder\nvd2svg *.xml\n```\n\nIf you are using colors from resource files, then need point to colors file.\n\n```bash\ncd ~/your/drawable/folder\nvd2svg -r ../values *.xml\n``` \n\n`-r` scans a directory recursively and searches for color values.\nIt also could point to the concrete file.\n\n### Advance usage\n\nIf you want fast preview all vectors and your file browser doesn't support SVG, you could convert them to png using [imagemagick](https://www.imagemagick.org/)\n\n```bash\nvd2svg *.xml\nmogrify -format png -density 1200 \"*.svg\"\n```\n\n### Help\n\n```bash\n➜  ~ vd2svg --help\nusage: vd2svg [-h] [-v] [-q] [-o OUTPUT] [-r RESOURCES]... INPUT...\n\noptional arguments:\n  -h, --help              show this help message and exit\n\n  -v, --verbose           Verbose mode. Causes vd2svg to print info messages\n\n  -q, --quiet             Quiet mode. Disables progress output\n\n  -o OUTPUT,              Path to the output directory. By default, output is\n  --output OUTPUT         put together with the input files\n\n  -r RESOURCES,           File or directory containing android resources for\n  --resources RESOURCES   color parsing\n\n\npositional arguments:\n  INPUT                   Input file mask. For example '*.xml'\n```\n\n### License\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworld%2Fvd2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneworld%2Fvd2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneworld%2Fvd2svg/lists"}