Use rflynn's aggressive, lossy image optimizer, imgmin.
Use rflynn's aggressive, lossy image optimizer, imgmin, in grunt! Unfortunately, you'll have to deal with the dependencies on your own, and it's a particularly wiley bunch. This is just a wrapper to automate running it on a buncha files.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-imgmin --save-dev
In your project's Gruntfile, add a section named
imgmin to the data object passed into
It's pretty darn slow, so I'd be careful about giving it too many files.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.