https://github.com/willybrauner/to-webp
Quick and dirty code to convert png and jpg images to webp format.
https://github.com/willybrauner/to-webp
convertor images nodejs webp
Last synced: 3 months ago
JSON representation
Quick and dirty code to convert png and jpg images to webp format.
- Host: GitHub
- URL: https://github.com/willybrauner/to-webp
- Owner: willybrauner
- Created: 2024-02-11T06:28:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T20:19:46.000Z (about 2 years ago)
- Last Synced: 2025-03-18T08:48:30.301Z (about 1 year ago)
- Topics: convertor, images, nodejs, webp
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# to webp
[](LICENSE)
## Description
Quick and dirty code to convert `png` and `jpg` images to `webp` format.
## Requirements
- Nodejs >= 20
## Installation
- Clone the repository.
- install dependencies with `npm i`
## Usage
From the root of this repository, convert all images of another directory to `webp`:
```sh
node src/index.mjs /target-images-directory
```
It will create new files with the same name and the `webp` extension and "slugify" names.
## Credits
[Willy Brauner](https://willybrauner.com)