Optimize PNG, JPEG, GIF, SVG images with gulp task.
$ npm install --save-dev gulp-image
brew install libjpeg libpngon macOS
apt-get install -y libjpeg libpngon Ubuntu
npm install -g windows-build-toolson Windows
This is an example of
const gulp = ;const image = ;gulp;gulp;
You can pass an object to
image() as argument such as following:
false for optimizers which you don't want to apply. And you can set
concurrent option to limit the max concurrency in execution. You can also set
quiet to avoid logging out results for every image processed.
You can configure parameters applied to each optimizers such as following: