Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netbek/grunt-svg2png-colorfy
Grunt plugin to rasterize SVG to PNG images with different colors
https://github.com/netbek/grunt-svg2png-colorfy
Last synced: 2 months ago
JSON representation
Grunt plugin to rasterize SVG to PNG images with different colors
- Host: GitHub
- URL: https://github.com/netbek/grunt-svg2png-colorfy
- Owner: netbek
- License: mit
- Created: 2015-01-31T19:03:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T15:20:23.000Z (about 7 years ago)
- Last Synced: 2024-10-09T10:42:56.813Z (4 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-svg2png-colorfy [![CircleCI](https://circleci.com/gh/netbek/grunt-svg2png-colorfy.svg?style=svg)](https://circleci.com/gh/netbek/grunt-svg2png-colorfy)
Grunt plugin to rasterize SVG to PNG images with different colors
## Getting Started
This plugin requires [Grunt](http://gruntjs.com/) `>=0.4.0`````javascript
// Gruntfile.js configuration
grunt.loadNpmTasks('grunt-svg2png-colorfy');grunt.initConfig({
svg2png_colorfy: {
all: {
options: {
// A hash of colors to pass in with names
colors: {
primary: '#FF0000'
}
},
// Specify files in array format with multiple src-dest mapping
files: [
// Rasterize all SVG files in "img" and its subdirectories to "img/png"
{cwd: 'img/', src: ['**/*.svg'], dest: 'img/png/'}
]
}
}
});
````## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).## Release History
* 0.1.3 Upgrade to Node 4.x for promises
* 0.1.2 Fix peer dependency bug, refactor using promises
* 0.1.1 Fix loading of grunt-svg2png tasks
* 0.1.0 First release## Credits
* Test icons by [IcoMoon](https://icomoon.io) (CC BY 4.0 or GPL)## License
Copyright (c) 2015 Hein Bekker. Licensed under the MIT license.