Skip to Main content

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
Aliases: mw

--max-height <MAX_HEIGHT>

Resize images to fit within this maximum height in pixels
Aliases: mh

--max-pixels <MAX_PIXELS>

Resize images so total pixels (width x height) do not exceed this value
Aliases: mp

-d, --depth <DEPTH>

WebP quality level from 1 (lowest) to 100 (highest)

--strip <STRIP>

Strip metadata (EXIF, ICC profiles, etc.) from the output (default: true)
Default values: true
Possible values: true, false

--alpha <ALPHA>

Preserve alpha (transparency) channel in the output (default: true)
Default values: true
Possible values: true, false

-f, --force <FORCE>

Overwrite existing .webp files instead of skipping them
Default values: false
Possible values: true, false

-h, --help

Print help.