gulp-svg2png
A gulp plugin for converting SVGs to PNGs.
Usage
First, install gulp-svg2png
as a development dependency:
npm install --save-dev gulp-svg2png
Then, add it to your gulpfile.js
:
var svg2png = require('gulp-svg2png');
gulp.task('svg2png', function () {
gulp.src('./specs/assets/**/*.svg')
.pipe(svg2png())
.pipe(gulp.dest('./build'));
});
Arguments
svg2png([scaling])
scaling
The scaling factor (optional; default=1.0)
Changelog
Version 0.2.3 (20140404)
- Retain folder hierarchy.
- Implemented UUID for temp file naming.
Version 0.2.2 (20140221)
- Added more files to .npmignore.
Version 0.2.1 (20140218)
- [Bugfix] See #3 for further information.
Version 0.2.0 (20140213)
- [Feature] Implemented option for passing the scaling factor.
Version 0.1.1 (20140212)
- README modification.
Version 0.1.0 (20140211)
- Initial Release.
Author
Copyright 2014, André König (andre.koenig@posteo.de)