tuyen image webp
Batch-convert images in the current directory to WebP format with optional resizing. Requires ImageMagick to be installed locally. To install ImageMagick, visit https://imagemagick.org/script/download.php.
Usage
tuyen image webp [OPTIONS]Options
--max-width <MAX_WIDTH>
- Resize images to fit within this maximum width in pixels.
- Alias:
mw.
--max-height <MAX_HEIGHT>
- Resize images to fit within this maximum height in pixels.
- Alias:
mh.
--max-pixels <MAX_PIXELS>
- Resize images so total pixel count does not exceed this value.
- Alias:
mp.
-d, --depth <DEPTH>
- WebP quality level from 1 (lowest) to 100 (highest).
--strip <STRIP>
- Strip metadata such as EXIF and ICC profiles from the output.
- Default value:
true. - Possible values:
true,false.
--alpha <ALPHA>
- Preserve the alpha transparency channel in the output.
- Default value:
true. - Possible values:
true,false.
-f, --force <FORCE>
- Overwrite existing .webp files instead of skipping them.
- Default value:
false. - Possible values:
true,false.
-h, --help
- Print help.