Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month ago
JSON representation
Convert images to WebP
- Host: GitHub
- URL: https://github.com/sindresorhus/gulp-webp
- Owner: sindresorhus
- License: mit
- Created: 2014-01-01T18:35:30.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T16:05:59.000Z (about 1 year ago)
- Last Synced: 2024-04-13T17:57:04.210Z (7 months ago)
- Topics: convert-images, gulp-plugin, image-processing, javascript, nodejs, webp
- Language: JavaScript
- Size: 58.6 KB
- Stars: 214
- Watchers: 13
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: license
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.