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.

/gulp-img2svg/

    Package Sidebar

    Install

    npm i gulp-img2svg

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • sujimoshi