Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-img2svg

1.0.0 • Public • Published

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.

install

npm i gulp-img2svg

Downloadsweekly downloads

4

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability