{"id":20324922,"url":"https://github.com/xeeo/svg2pngs","last_synced_at":"2025-07-06T15:34:34.651Z","repository":{"id":97609448,"uuid":"112405337","full_name":"xeeo/svg2pngs","owner":"xeeo","description":"This is a command-line tool for converting SVG to PNG in multiple resolutions (@1x @2x @3x)","archived":false,"fork":false,"pushed_at":"2023-05-03T14:16:45.000Z","size":15,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T15:49:06.964Z","etag":null,"topics":["converter","images","png","react-native","svg","svg2png"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/xeeo.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-11-29T00:26:11.000Z","updated_at":"2021-05-10T02:01:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3355d75-8068-4edf-91c1-2e3678fe25cb","html_url":"https://github.com/xeeo/svg2pngs","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/xeeo%2Fsvg2pngs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeeo%2Fsvg2pngs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeeo%2Fsvg2pngs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeeo%2Fsvg2pngs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xeeo","download_url":"https://codeload.github.com/xeeo/svg2pngs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468524,"owners_count":21108835,"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":["converter","images","png","react-native","svg","svg2png"],"created_at":"2024-11-14T19:38:11.439Z","updated_at":"2025-04-11T19:42:24.005Z","avatar_url":"https://github.com/xeeo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVG to PNG (@1x @2x @3x)\n\nThis is a command-line tool for converting SVG to PNG in multiple resolutions (@1x @2x @3x)\n\n## Install\n\n```sh\nnpm install -g svg2pngs\n```\nor \n```sh\nyarn global add svg2pngs\n```\n\n## Usage\n \nLet's assume you have a project with multiple *.svg files in multiple sub-folders like this:\n\n```sh\napp\n  ├── images\n  │   └── Image1.svg\n  └── main-images\n      ├── small-images\n      │   └── Image2.svg\n      └── Image3.svg\n```\n\nYou have to cd into the main folder and run the following command:\n\n```sh\ncd app\nsvg2pngs\n```\n\nThis will walk though the entire folder structure and create the associated *png files in 3 resolutions @1x, @2x and @3x.\n\nThe end result would be something like this:\n\n```sh\napp\n  ├── images\n  │   ├── Image1.svg\n  │   ├── Image1.png\n  │   ├── Image1@2x.png\n  │   └── Image1@3x.png\n  └── main-images\n      ├── small-images\n      │   ├── Image2.svg\n      │   ├── Image2.png\n      │   ├── Image2@2x.png\n      │   └── Image2@3x.png\n      ├── Image3.svg\n      ├── Image3.png\n      ├── Image3@2x.png\n      └── Image3@3x.png\n```\n\nEnjoy !\n\n#### Disclosure\nThis project is based on * [Rebar's tool](http://codefoundries.com/developer/rebar-architecture/units/tools/build-app-images.html).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeeo%2Fsvg2pngs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxeeo%2Fsvg2pngs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeeo%2Fsvg2pngs/lists"}