A script to generate images from SVGs.
- It requires imageMagick to be installed. Note: When installing be sure to check the 'Legacy Convert' feature
- Once ImageMagick is installed, restart VS Code if it is already open.
- Run
npm install
to install the required dependencies (Sharp is required to get the SVG size attributes).
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
.
- Running the build script again does not delete any files in the 'dist' folder prior to running.