https://github.com/heldr/gulp-smushit
Gulp plugin to optimize PNG and JPG using reSmush.it.
https://github.com/heldr/gulp-smushit
Last synced: 10 months ago
JSON representation
Gulp plugin to optimize PNG and JPG using reSmush.it.
- Host: GitHub
- URL: https://github.com/heldr/gulp-smushit
- Owner: heldr
- Created: 2014-10-11T09:52:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T21:12:05.000Z (about 8 years ago)
- Last Synced: 2025-04-10T19:47:23.906Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 751 KB
- Stars: 32
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-wpo-chinese - Gulp-smushit - Gulp plugin to optimize PNG and JPG using Yahoo Smushit. Made on top of smosh. (Image Optimizers)
- awesome-wpo - Gulp-smushit - Gulp plugin to optimize PNG and JPG using Yahoo Smushit. Made on top of smosh. (Image Optimizers / Meetups)
- awesome-wpo-dup - Gulp-smushit - Gulp plugin to optimize PNG and JPG using Yahoo Smushit. Made on top of smosh. (Image Optimizers)
- fucking-awesome-wpo - Gulp-smushit - Gulp plugin to optimize PNG and JPG using Yahoo Smushit. Made on top of smosh. (Image Optimizers / Meetups)
README
# [gulp](http://gulpjs.com)-smushit [](https://travis-ci.org/heldr/gulp-smushit)
Gulp plugin to optimize PNG and JPG using reSmush.it. Made on top of [smosh](https://github.com/heldr/smosh).
> 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.
[Read more about reSmush.it](http://resmush.it/)
Prefer Grunt? [grunt-smushit](https://github.com/heldr/grunt-smushit)
## Install
```sh
$ npm install --save-dev gulp-smushit
```
## Usage
```js
var gulp = require('gulp');
var smushit = require('gulp-smushit');
gulp.task('default', function () {
return gulp.src('src/**/*.{jpg,png}')
.pipe(smushit())
.pipe(gulp.dest('dist'));
});
```
## API
### smushit(options)
#### options
##### verbose
Type: `boolean`
Default: `false`
Show compress rate stats
## License
MIT © [Helder Santana](https://github.com/heldr)