gulp-img2svg
v1.0.0
Published
Gulp plugin for converting images (jpg, png, bmp etc) to SVG
Downloads
7
Maintainers
Readme
gulp-img2svg
A gulp plugin for converting images (PNG, JPG, BMP atc) to SVG.
Usage
First, install gulp-img2svg
as a development dependency:
npm install --save-dev gulp-img2svg
Then, add it to your gulpfile.js
:
const img2svg = require('gulp-img2svg');
gulp.task('img2svg', function () {
gulp.src('./specs/assets/**/*.png')
.pipe(img2svg())
.pipe(gulp.dest('./build'));
});
Arguments
img2svg([options])
options
Plugin based on potrace, so see option there.