https://github.com/coliff/svg-batch-convert
https://github.com/coliff/svg-batch-convert
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/coliff/svg-batch-convert
- Owner: coliff
- Created: 2024-02-27T10:33:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T06:08:52.000Z (over 2 years ago)
- Last Synced: 2025-02-10T00:26:21.274Z (over 1 year ago)
- Language: JavaScript
- Size: 171 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SVG Batch Image Generator
A script to generate images from SVGs.
## Setup
1. It requires [imageMagick](https://imagemagick.org/script/download.php) to be installed.
_Note: When installing be sure to check the 'Legacy Convert' feature_
2. Once ImageMagick is installed, restart VS Code if it is already open.
3. Run `npm install` to install the required dependencies (Sharp is required to get the SVG size attributes).
## Usage
Run `npm run build` to output all icons as PNGs in the relevant folders. In the event of needing a different size you can edit the sizes on line 10 of `build.js`.
## Notes
- Running the build script again does not delete any files in the 'dist' folder prior to running.