Skip to content

Quick and dirty code to convert png and jpg images to webp format.

Notifications You must be signed in to change notification settings

willybrauner/to-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

Quick and dirty code to convert png and jpg images to webp format.

Topics

Resources

Stars

Watchers

Forks