This script provides a simple command-line function, c2webp
, to convert images (JPEG, PNG, TIFF) to the WebP format. It leverages the cwebp
command-line tool from Google.
- Converts single image files or entire directories of images.
- Supports JPEG, PNG, and TIFF input formats.
- Allows specifying the output WebP quality.
- Supports passing additional options directly to the
cwebp
command.