imagemin / jpegtran-bin

jpegtran bin-wrapper that makes it seamlessly available as a local dependency
http://libjpeg-turbo.virtualgl.org
MIT License
93 stars 47 forks source link

Not working #85

Closed Yuriy-Svetlov closed 7 years ago

Yuriy-Svetlov commented 7 years ago
var execFile = require('child_process').execFile;
var jpegtran = require('jpegtran-bin');

//gulp jpgmin
gulp.task('jpgmin', function() {
    return execFile(jpegtran, ['-min', 'build/img/', 'src/img/**/*.jpg'], function (err) {
        console.log('Image minified!');
    });
});
shinnn commented 7 years ago

Not a jpegtran-bin issue. Use https://stackoverflow.com/ for gulp.js support questions.