akoenig / gulp-svg2png

A gulp plugin for converting SVGs to PNGs.
MIT License
54 stars 34 forks source link

Task finishes, nothing converted #23

Closed kr8n3r closed 5 years ago

kr8n3r commented 8 years ago

[10:52:02] Starting 'svg2png'... [10:52:02] Finished 'svg2png' after 7.43 ms

gulp.task('svg2png', function () {
    gulp.src(defaults.src +'/_assets/icons/**/*.svg')
        .pipe(svg2png())
        .pipe(gulp.dest(defaults.src +'/_assets/icons--png/'));
});

node v 5.11.1

boye commented 8 years ago

I have also run into this issue and I am using node v6.2.2

radiocity commented 8 years ago

Try to define size parameters. It should help.

return  gulp.src(paths.src)
                .pipe(svg2png({width: 300, height: 300}, true))
                .pipe(gulp.dest(paths.dest))
kr8n3r commented 8 years ago

surely not?

Andrew-Dunn commented 8 years ago

I've made a fix for this in my personal branch.

radu-tanasescu commented 8 years ago

I have the same problem with version 2.0.0 and npm 2.15.5, every time I run the gulp task it shows to be "starting svg2png" but then it just crashes and no images get converted.

I installed gulp-svg2png@1.0.2 and the images get converted, if your workflow supports 1.0.2 it could act as a temporary solution until the fix gets released.

joepagan commented 8 years ago

I'm getting this too, thank you @radu-tanasescu great idea.