Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

Repository files navigation

Note

This project is preserved as a historical open-source project. It is not actively maintained, and its dependencies or recommended practices may be outdated.

I’m keeping it public because it may still be useful as reference material. If you rely on it in production, please review the code carefully and consider maintaining your own fork.

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)

About

A gulp plugin for converting SVGs to PNGs.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages