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
gruntinitConfigimgmin:dist:files:'dest/img.jpg': 'src/img.jpg''dest/img.png': 'src/img.png'
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.
- 2013-04-03 v0.1.1 Update dependencies to include
- 2013-03-01 v0.1.0 Initial release.