Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display treatment logs #5

Closed
Delapouite opened this issue May 27, 2014 · 2 comments
Closed

Display treatment logs #5

Delapouite opened this issue May 27, 2014 · 2 comments

Comments

@Delapouite
Copy link

Hi

Converting massive collections of SVGs to PNGs files is a rather CPU intensive process even with recent machines. Currently there's no way to tell what's going on under the hood during a conversion task until it's has finished minutes later.

Would it be possible to add an optional output with gutil.log to display the file path of images already converted? Thanks.

@akoenig
Copy link
Owner

akoenig commented Jul 9, 2014

Available in 0.3.0 now :)

@akoenig akoenig closed this as completed Jul 9, 2014
@cspicuzza
Copy link

cspicuzza commented Feb 27, 2017

I'm having difficulty getting the progress log to display. Here's my code sample incase you wanted to see it:

gulp.task('svg2png-test', function gulpTask(){

    return gulp.src(config.folders.originals + '/**/*.svg')
        .pipe(svg2png([{width: '32', height: '32'}, true, 5]))
        .on('error', handleErrors)
        .pipe(gulp.dest(config.folders.pngRaw + '/32'))
        .on('end', function(){ gutil.log(gutil.colors.green('Completed svg -> png 32') ) });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants