0.3.2 • Published 1 year ago
to-webp-json v0.3.2
to-webp-json
Usage
Create img-src folder
mkdir img-srcAdd images to img-src
npx to-webp-json@latestCommand 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=originalnpx to-webp-json src=sources height=2000# no arguments interactive mode
npx to-webp-json