img2webp
v1.0.0
Published
Fast CLI utility to convert images to WebP format
Maintainers
Readme
img2webp
A simple Node.js CLI utility to convert images to WebP format.
Installation
npm install -g img2webpUsage
img2webp [--info] <image-file(s)>Examples
Convert a single file:
img2webp image.pngConvert multiple files using wildcards:
img2webp *.png
img2webp img_*.jpg
img2webp photo1.png photo2.jpg photo3.gifShow detailed information with --info flag:
img2webp --info image.png
img2webp --info *.pngSupported Input Formats
- PNG
- JPEG/JPG
- GIF
- TIFF
- WebP (for re-encoding)
- AVIF
- And many more formats supported by Sharp
Requirements
- Node.js 14.15.0 or higher
License
MIT
