Any plugin for Gulp to use for compression of images not to swear GooglePagespeed?

Start task
var gulp = require("gulp");
var imagemin = require('gulp-imagemin');
var imageminPngquant = require('imagemin-pngquant');
var imageminZopfli = require('imagemin-zopfli');
var imageminMozjpeg = require('imagemin-mozjpeg'); 
var imageminGiflossy = require('imagemin-giflossy');

gulp.task('imagemin', function() {
 return gulp.src(['./www/site/img/**/*.{gif,png,jpg}'],{base: './'})
 speed: 1,
 quality: 98
 imageminMozjpeg({quality: 90, progressive: true, tune: "ms-ssim", smooth: 2})
 .pipe(gulp.dest('./'), {overwrite: true});

Still cursing... I am tired of this already guglipid
June 10th 19 at 16:21
2 answers
June 10th 19 at 16:23
Express gulp-imagemin with default settings and do not pay attention to Google Pagespeed.
Well, it's not the solution Denis. When people take the website to check this tool from Google. - Lyric_Wunsch commented on June 10th 19 at 16:26
, Pagespeed I sometimes compresses images by up to 98%, so some aspects are dependent on the analyzed layout. Therefore, customers I recommend taking into account the data with Pagespeed, but not maniace.
Here try these settings:
imagemin.gifsicle({interlaced: true}),
 max: 85,
 progressive: true
imagemin.optipng({optimizationLevel: 5}),
imagemin.svgo({plugins: [{cleanupIDs: false, removeEmptyAttrs: false, removeViewBox: false}]})
- duane_Moore commented on June 10th 19 at 16:29
gulp-tinypng - Tatum.Schinn commented on June 10th 19 at 16:32
is the perfect solution. With people who stupidly trust pagespeed, and nothing more do not want to know, it is better not to work - they are idiots and they can expect anything. Turn on that pagespeed for images is not true in poledna instance in the contract. - Mark.Kub commented on June 10th 19 at 16:35
About him , you know, pay... of course you Can register 10 emails and get 10 keys and change them)

Increasingly inclined to such. I'll keep trying to optimize, and images well as you can. - Lyric_Wunsch commented on June 10th 19 at 16:38
June 10th 19 at 16:25
Use imagemin, but to adjust its level of compression.

Find more questions by tags Gulp.js