From root folder:
npm install
Place the images you want to convert into images
folder.
Run:
npm run start
Processed images will go into processed
folder. Converts jpg
, jpeg
, or png
into webp
format.
Pass sizes like this:
npm run start 500 700 1000
Settings:
https://github.com/imagemin/imagemin-webp
Enjoy.