A gulp plugin for converting SVGs to PNGs.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib chore: remove `typings` Jan 26, 2017
specs
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
HISTORY.md refactor(conversion): major rewrite regarding the file conversion May 28, 2016
LICENSE
README.md
index.d.ts
index.ts fix: missing bracket after commenting code Jan 26, 2017
package.json chore: downgrade `svg2png` Jan 26, 2017
tsconfig.json feat(typings): bundle declarations #17 May 28, 2016

README.md

gulp-svg2png Build Status

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([options, verbose, concurrency])

options

The resizing options which will be passed directly to svg2png.

verbose

Logs progress information (optional; default=true)

concurrency

Limit the amount of concurrent tasks processed at one time. (optional; default=null)

Development

TypeScript build

npm run build

Changelog

See HISTORY.md

Author

Copyright 2014-2016, André König (andre.koenig@posteo.de)