P
P
Peter Sergeev2019-04-11 09:05:00
npm
Peter Sergeev, 2019-04-11 09:05:00

Are there any good gulp plugins for image compression?

Tried, as I understand it, the rather popular "gulp-imagemin" plugin ( https://www.npmjs.com/package/gulp-imagemin). Image shrunk by 42 kb
But when I uploaded the same image to the online optimizer https://compressor.io/compress , it shrunk the image by 1.05 mb. That is, more than 1000 kb for the online optimizer versus 42 kb for the npm optimizer.
Are there any normal npm optimizers that will not be inferior to this online version?
And why is there such a big difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2019-04-11
@sharnirio

As an option, the matter is in the settings, since there are many options, plus the ability to connect additional plugins for better optimization. Of the most effective plugins, perhaps gulp-tinypng will be , but it is paid after 500 pictures, you can also find its free version there without having to enter a key, but I would not pull this plugin into production, since it is not known what is in the scripts besides the plugin itself )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question