0
You have the answer in the title of your question – "grunt-contrib-imagemin". If you google it you will find this page on GitHub for Grunt.js as official Grunt GitHub site. On this page it is all described very detailed.
For example:
For imagemin OptiPNG plugin:
optimizationLevel (It is for...