Projects
View on GitHub
sindresorhus/gulp-webp
About
Convert images to WebP
Design & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalgulp-webp
Convert images to WebP
Supports PNG, JPEG, TIFF, WebP.
Install
npm install --save-dev gulp-webp
Usage
import gulp from 'gulp';
import webp from 'gulp-webp';
export default () => (
gulp.src('src/image.jpg')
.pipe(webp())
.pipe(gulp.dest('dist'))
);
API
webp(options?)
See the imagemin-webp options.
Unsupported files are ignored and passed through.
Images with CMYK color spaces are passed through unchanged as WebP doesn't support CMYK.*
Explore related projects
Loading…