Q
Q
quiplunar2020-09-11 16:10:16
gulp.js
quiplunar, 2020-09-11 16:10:16

Gulp photo compression?

To optimize images, I use the gulp-imagemin plugin :

const options = [
    imagemin.mozjpeg({ progressive: true }),
    imagemin.optipng({ optimizationLevel: 3 }),
  ]


Judging by the description, compression will occur without loss of image quality. Is it so? I just tried to compress photos with a third-party service, and there, when compressed without quality loss, the results were worse.

Do my settings compress photos with loss of quality or not?) And do you know where you could compare 2 photos and understand whether it was compressed or not?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Steppp, 2020-09-11
@Steppp

There will always be loss of quality!
You can open 2 photos on 1 monitor and compare! Compressed will weigh less!

M
Mesuti, 2020-09-11
@Mesuti

The quality loss depends on the level of compression. optimizationLevel: 3
Empirically, you can calculate the most optimal option, not noticeable to the eye.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question