Skip to content

heldr/gulp-smushit

Repository files navigation

gulp-smushit Build Status

Gulp plugin to optimize PNG and JPG using Yahoo Smushit.

Smush.it uses optimization techniques specific to image format to remove unnecessary bytes from image files. It is a "lossless" tool, which means it optimizes the images without changing their look or visual quality.

Read more about Smush.it

Install

$ npm install --save-dev gulp-smushit

Usage

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

About

Gulp plugin to optimize PNG and JPG using reSmush.it.

Resources

Stars

Watchers

Forks

Packages

No packages published