{"id":20206057,"url":"https://github.com/jaredrummler/vector2svg","last_synced_at":"2025-04-10T12:21:16.442Z","repository":{"id":41514092,"uuid":"44045779","full_name":"jaredrummler/vector2svg","owner":"jaredrummler","description":"Convert Android VectorDrawable XML resource file to SVG","archived":false,"fork":false,"pushed_at":"2016-11-25T01:11:59.000Z","size":90,"stargazers_count":68,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T11:08:04.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredrummler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-11T09:09:40.000Z","updated_at":"2025-01-11T06:56:01.000Z","dependencies_parsed_at":"2022-09-01T14:50:26.911Z","dependency_job_id":null,"html_url":"https://github.com/jaredrummler/vector2svg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2Fvector2svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2Fvector2svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2Fvector2svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredrummler%2Fvector2svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredrummler","download_url":"https://codeload.github.com/jaredrummler/vector2svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217179,"owners_count":21066633,"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":[],"created_at":"2024-11-14T05:21:00.494Z","updated_at":"2025-04-10T12:21:16.412Z","avatar_url":"https://github.com/jaredrummler.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vector2svg\nConvert [Android VectorDrawable](https://developer.android.com/reference/android/graphics/drawable/VectorDrawable.html) XML resource file to SVG\n\n___\n\nDownload the [JAR](https://github.com/jaredrummler/vector2svg/blob/master/release/vector2svg-1.1.1.jar?raw=true)\n\nUsage: java -jar [JAR] [FILES]\n\nEach argument should be a path to a vector drawable. A new file will be created in the same directory as the vector drawable with a \"svg\" extension. This is useful because you cannot view a VectorDrawable with Adobe Illustrator or other similar software.\n\nTo convert an SVG to an Android VectorDrawable, use [this tool](http://inloop.github.io/svg2android/).\n\n___\n\nExample:\n---\n\nOriginal:\n\n```xml\n\u003cvector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        android:width=\"48dp\"\n        android:height=\"48dp\"\n        android:viewportWidth=\"48.0\"\n        android:viewportHeight=\"48.0\"\u003e\n    \u003cpath\n        android:pathData=\"M34.9,13.2c-0.8,-0.8,-4.2,-2.4,-10.9,-2.4s-10.1,1.6,-10.9,2.4c-0.8,0.8,-2.4,4.2,-2.4,10.9s1.6,10.1,2.4,10.9    c0.8,0.8,4.2,2.4,10.9,2.4s10.1,-1.6,10.9,-2.4c0.8,-0.8,2.4,-4.2,2.4,-10.9S35.6,14,34.9,13.2z\"\n        android:fillColor=\"#FFFFFF\"/\u003e\n    \u003cpath\n        android:pathData=\"M34.7,13.7c0,0.8,-1.2,1.5,-3.1,2.1c-1.9,0.5,-4.6,0.8,-7.6,0.8s-5.6,-0.3,-7.6,-0.8    c-1.9,-0.5,-3.1,-1.2,-3.1,-2.1s1.2,-1.5,3.1,-2.1c1.9,-0.5,4.6,-0.8,7.6,-0.8s5.6,0.3,7.6,0.8C33.5,12.1,34.7,12.9,34.7,13.7z\"\n        android:fillColor=\"#EBEBEB\"/\u003e\n    \u003cpath\n        android:pathData=\"M30,13c-0.1,0,-0.1,0,-0.2,0c-0.4,-0.1,-0.7,-0.6,-0.6,-1l1.3,-5.5c0.1,-0.4,0.6,-0.7,1,-0.6c0.4,0.1,0.7,0.6,0.6,1    l-1.3,5.5C30.7,12.7,30.4,13,30,13z\"\n        android:fillColor=\"#FFFFFF\"/\u003e\n    \u003cpath\n        android:pathData=\"M18,13c-0.4,0,-0.7,-0.3,-0.8,-0.6l-1.3,-5.5c-0.1,-0.4,0.2,-0.9,0.6,-1c0.4,-0.1,0.9,0.2,1,0.6l1.3,5.5    c0.1,0.4,-0.2,0.9,-0.6,1C18.1,13,18.1,13,18,13z\"\n        android:fillColor=\"#FFFFFF\"/\u003e\n\u003c/vector\u003e\n```\n\nOutput:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e\n\u003csvg viewBox=\"0 0 48.0 48.0\"\u003e\n  \u003cpath d=\"M34.9,13.2c-0.8,-0.8,-4.2,-2.4,-10.9,-2.4s-10.1,1.6,-10.9,2.4c-0.8,0.8,-2.4,4.2,-2.4,10.9s1.6,10.1,2.4,10.9    c0.8,0.8,4.2,2.4,10.9,2.4s10.1,-1.6,10.9,-2.4c0.8,-0.8,2.4,-4.2,2.4,-10.9S35.6,14,34.9,13.2z\" fill=\"#FFFFFF\"/\u003e\n  \u003cpath d=\"M34.7,13.7c0,0.8,-1.2,1.5,-3.1,2.1c-1.9,0.5,-4.6,0.8,-7.6,0.8s-5.6,-0.3,-7.6,-0.8    c-1.9,-0.5,-3.1,-1.2,-3.1,-2.1s1.2,-1.5,3.1,-2.1c1.9,-0.5,4.6,-0.8,7.6,-0.8s5.6,0.3,7.6,0.8C33.5,12.1,34.7,12.9,34.7,13.7z\" fill=\"#EBEBEB\"/\u003e\n  \u003cpath d=\"M30,13c-0.1,0,-0.1,0,-0.2,0c-0.4,-0.1,-0.7,-0.6,-0.6,-1l1.3,-5.5c0.1,-0.4,0.6,-0.7,1,-0.6c0.4,0.1,0.7,0.6,0.6,1    l-1.3,5.5C30.7,12.7,30.4,13,30,13z\" fill=\"#FFFFFF\"/\u003e\n  \u003cpath d=\"M18,13c-0.4,0,-0.7,-0.3,-0.8,-0.6l-1.3,-5.5c-0.1,-0.4,0.2,-0.9,0.6,-1c0.4,-0.1,0.9,0.2,1,0.6l1.3,5.5    c0.1,0.4,-0.2,0.9,-0.6,1C18.1,13,18.1,13,18,13z\" fill=\"#FFFFFF\"/\u003e\n\u003c/svg\u003e\n```\n\nNow you can open the SVG in Adobe Illustrator or a similar program.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Fvector2svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredrummler%2Fvector2svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredrummler%2Fvector2svg/lists"}