B
B
boberskyibohdan2016-10-26 19:44:22
JavaScript
boberskyibohdan, 2016-10-26 19:44:22

What is the most efficient way to compress images with Gulp?

Recommend a plugin that compresses as many images as possible without losing quality.
imagemin and pngquant compress very little, photoshop is even better.
I found tinypng, but there are only 500 first pictures for free.
https://tinypng.com/developers

Answer the question

In order to leave comments, you need to log in

5 answer(s)
E
Edward, 2016-10-26
@edalis

https://www.npmjs.com/package/gulp-image - I use it for png, gif, svg
https://www.npmjs.com/package/gulp-smushit - for jpg, it's better.
Of the online services, not so long ago, another one appeared : Jpeg.io. Powered by Kraken.io .

Z
zooks, 2016-10-27
@zooks

At one time I tried many utilities and selected the most effective ones.
TinyPNG , of course, is good for small volumes, but by no means a panacea. Moreover, he himself uses a third-party library. In addition to it, there are other online compressors that also performed well in tests with transparent PNG-24:
compresspng.com
kraken.io
Of the console utilities, pngquant compresses best of all .
In Gulp, it can be called via the console: gulp-shell . Works under any system.
There are also gulp plugins of the same name, the most popular of which is imagemin-pngquant , which comes as an addition to imagemin

E
Evgeny Vlasenko, 2016-11-03
@mahnunchik

I recommend to take a closer look at this plugin https://www.npmjs.com/package/gulp-responsive
Built on the basis of https://github.com/lovell/sharp so you should tweak the settings according to its documentation sharp.dimens.io/en/stable

A
Alexei_8, 2020-05-08
@Alexei_8

сайт
На нём есть таблица в которой указывается размер/процент сжатия и каким gulp плагином и с какими свойствами это было произведено.
Жаль только что указывается только про png и jpg.

V
Volodimir Babeshko, 2016-10-26
@dady_KK

Пнгквант отлично сжимает, нужно только ставить приемлемый уровень потерь качества

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question