1000ch / gulp-image

Optimize PNG, JPEG, GIF, SVG images with gulp task.
http://bit.ly/we-should-optimize-images
MIT License
223 stars 22 forks source link

pngquant --speed does not do anything #48

Closed dbaronov closed 6 years ago

dbaronov commented 6 years ago

I have this config:

    .pipe(image({
        pngquant: true,
        optipng: false,
        zopflipng: false,
        jpegRecompress: true,
        mozjpeg: false,
        guetzli: false,
        gifsicle: false,
        svgo: true,
        concurrent: 10,
        options: {
            pngquant : ['--speed=10'],
        }
    }))

Unless I am missing something, the pngquant : ['--speed=10'], does not do anything, as processing speed is the same as without this setting.

Any ideas?

1000ch commented 6 years ago

@dbaronov Try this, and fixed confusing usage (d28f57a).

.pipe(image({
  pngquant: ['--speed=10'],
  optipng: false,
  zopflipng: false,
  jpegRecompress: true,
  mozjpeg: false,
  guetzli: false,
  gifsicle: false,
  svgo: true,
  concurrent: 10
}))
dbaronov commented 6 years ago

@1000ch Thanks for this, still does not affect a speed too much as only 1 - 2 seconds faster.

1000ch commented 6 years ago

@dbaronov

still does not affect a speed too much as only 1 - 2 seconds faster.

This is not a problem of this plugin, but pngquant itself 😅