LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

img2webp

create animated WebP files from a sequence of input images

TLDR

Create animated WebP from image sequence
$ img2webp [frame1.png] [frame2.png] [frame3.png] -o [animation.webp]
copy

SYNOPSIS

img2webp [options] input -o output

DESCRIPTION

img2webp creates animated WebP files from a sequence of input images. Each input frame can have individual compression settings (lossy or lossless) and duration. For single-image conversion to WebP, use cwebp instead.The tool supports both lossy and lossless compression modes per frame, with configurable animation loop count and frame durations.

PARAMETERS

-o FILE

Output WebP filename
-lossy
Use lossy compression
-lossless
Use lossless compression (default)
-q QUALITY
Quality factor (0-100, default 75)
-m METHOD
Compression method (0-6, default 4)
-loop COUNT
Loop count for animations (0 = infinite)
-d MS
Frame duration in milliseconds for animations

CAVEATS

Part of the libwebp package. Input format support depends on linked libraries. Very old browsers may not support WebP format. Some image editors have limited WebP support.

HISTORY

WebP was developed by Google and announced in 2010 as an open standard for compressed web images. The format is based on the VP8 video codec and offers significant size reductions compared to traditional formats.

SEE ALSO

cwebp(1), dwebp(1), gif2webp(1)

Copied to clipboard
Kai