1.0.0 • Published 7 years ago
gulp-img2svg v1.0.0
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.
1.0.0
7 years ago