Grunt plugin to remove unnecessary bytes of PNG and JPG using Yahoo Smushit
Grunt plugin to remove unnecessary bytes of PNG and JPG using reSmush.it
reSmush.it is a FREE alternative to Yahoo Smush.it (deprecated on March 2015). This tool provides a online way to optimize pictures size via a documented webservice.
Prefer Gulp? gulp-smushit
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-smushit --save-dev
In your project's Gruntfile, add a section named
smushit to the data object passed into
Call another service instead of Yahoo Smushit
Show image compressing rate log
Move your files to a target folder (should not be into the same).
Be safe to replace all of your old files with this option.
Recursively walk into folders and smushit files
Smushit one folder, or many of them
Provide your base directory
There is an option that you can set your own image optimizer service. Its a good alternative if you don't want to wait for smush.it web service latency.
$ git clone git://github.com/heldr/grunt-smushit.git$ cd grunt-smushit$ npm install$ npm test
NOTE: Be sure to keep up to date the plugin tests and jshint code quality.
MIT License (c) Helder Santana