to-webp-json
v0.3.3
Published
Convert images to webp structure
Downloads
82
Maintainers
Readme
to-webp-json
Usage
Create img-src
folder
mkdir img-src
Add images to img-src
npx to-webp-json@latest
Command line options
| Param | Type | Description | Default | | ------ | -------------- | ------------------------------------------- | -------- | | src | string | Source folder name | img-src | | dist | string | Result folder name | img-dist | | format | string | webp, jpg, png, avif, tiff, gif or original | webp | | json | string | null | Structure file name | null | | width | number | null | Maximum image width in pixels | null | | height | number | null | Maximum image height in pixels | null |
Examples
npx to-webp-json json=static-images format=original
npx to-webp-json src=sources height=2000
# no arguments interactive mode
npx to-webp-json