in JavaScript by
Minifying Images in Grunt.JS

▼ Show 1 Answer

0 votes
Minifying Images
Minifying Images

ImageMin helps to compress the gif, jpeg, and png files. This takes care of compressing both static and dynamic images. This will assist in improving the rendering of webpages using images of big size.

Installing the Imagemin plug-in could be achieved through below code

$ npm install grunt-contrib-imagemin --save-dev

Note: There is limit to the image file size. This cannot optimize files of huge size.

Learn More with Madanswer

Related questions

+1 vote
asked Feb 28, 2020 in JavaScript by miceperry
+1 vote