Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/gulp-webp

Convert images to WebP
https://github.com/sindresorhus/gulp-webp

convert-images gulp-plugin image-processing javascript nodejs webp

Last synced: 3 days ago
JSON representation

Convert images to WebP

Awesome Lists containing this project

README

        

# gulp-webp

> Convert images to [WebP](https://developers.google.com/speed/webp/)

Supports PNG, JPEG, TIFF, WebP.

## Install

```sh
npm install --save-dev gulp-webp
```

## Usage

```js
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](https://github.com/imagemin/imagemin-webp#imageminwebpoptions).

Unsupported files are ignored and passed through.