![]() To use jpegoptim you must npm install jpegoptim-bin -save, this library does not work properly on some OS and platforms. To use guetzli you must npm install guetzli -save, this library does not work properly on some OS and platforms.įor jpegRecompress - in details jpegRecompress įor jpegoptim. Can be false or commands array.įor jpegtran - in details jpegtran įor mozjpeg - in details mozjpeg įor guetzli - (Very long compresses on Win 8.1 ) in details guetzli command (type:boolean|array): Options for compression.Jpegtran, mozjpeg, webp, guetzli, jpegRecompress, jpegoptim, tinify engine (type:string): Engine for compressing jpeg.Also you can set false Įnginejpg (type:plainObject): Engine for compressing jpeg and options compress. Globoption (type:boolean|other): Options module`s glob. You can specify the path to source images folder and all images in the folder will be compressed and moved to output folder.Īs an example, one of many: INPUT ['src/img/source/**/*. As an example: you want to compress images in jpegRecompress, but you get the error Unsupported color conversion request, so an alternative algorithm to compress the images can be used, like mozjpeg. If you get an error, alternative algorithms for compressing images can be used. Just select the PNG files you want to compress (there is no limit on the. Alternative configuration/algorithm for compressing images If you were wondering how to reduce the size of a PNG you found the solution here. If you get an error, the error log will be saved. ![]() As an example - mozjpeg + jpegoptim or jpegtran + mozjpeg or any other algorithm. You can even minify images by using a combination of compression algorithms.
0 Comments
Leave a Reply. |