gulp-svg2png
Version:
A gulp plugin for converting SVGs to PNGs.
57 lines (33 loc) • 1.16 kB
Markdown
# gulp-svg2png [](https://travis-ci.org/akoenig/gulp-svg2png)
> A gulp plugin for converting SVGs to PNGs.
## Usage
First, install `gulp-svg2png` as a development dependency:
```shell
npm install --save-dev gulp-svg2png
```
Then, add it to your `gulpfile.js`:
```javascript
var svg2png = require('gulp-svg2png');
gulp.task('svg2png', function () {
gulp.src('./specs/assets/**/*.svg')
.pipe(svg2png())
.pipe(gulp.dest('./build'));
});
```
## Arguments
### svg2png([options, verbose, concurrency])
`options`
The resizing options which will be passed directly to [svg2png](https://github.com/domenic/svg2png#exact-resizing-behavior).
`verbose`
Logs progress information (optional; default=true)
`concurrency`
Limit the amount of concurrent tasks processed at one time. (optional; default=null)
## Development
### TypeScript build
```sh
npm run build
```
## Changelog
See [HISTORY.md](https://github.com/akoenig/gulp-svg2png/blob/master/HISTORY.md)
## Author
Copyright 2014-2016, [André König](http://andrekoenig.info) (andre.koenig@posteo.de)