How to increase the level of image optimization using Gulp?

Asked

Viewed 39 times

1

I have a task and would like to know how to improve image optimization? Follow my script below:

gulp.task(
    'build-img',
    () =>
    gulp.src('assets/img/**/*')
        .pipe(imagemin( {
            interlaced: true,
            progressive: true,
            optimizationLevel: 2,
            svgoPlugins: [{
                removeViewBox: true
            }]
        }))
        .pipe(gulp.dest('dist/images'))
)

I read in the documentation that it goes from 0 - 10 i level. But the optimizations are static.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.