1IMG2WEBP(1) General Commands Manual IMG2WEBP(1)
2
3
4
6 img2webp - create animated WebP file from a sequence of input images.
7
9 img2webp [file_level_options] [files] [per_frame_options...]
10 img2webp argument_file_name
11
13 This manual page documents the img2webp command.
14
15 img2webp compresses a sequence of images using the animated WebP for‐
16 mat. Input images can either be PNG, JPEG, TIFF or WebP. If a single
17 file name (not starting with the character '-') is supplied as the
18 argument, the command line arguments are actually tokenized from this
19 file. This allows for easy scripting or using a large number of argu‐
20 ments.
21
23 The file-level options are applied at the beginning of the compression
24 process, before the input frames are read.
25
26 -o string
27 Specify the name of the output WebP file.
28
29 -min_size
30 Encode images to achieve smallest size. This disables key frame
31 insertion and picks the parameters resulting in the smallest
32 output for each frame. It uses lossless compression by default,
33 but can be combined with -q, -m, -lossy or -mixed options.
34
35 -kmin int
36
37 -kmax int
38 Specify the minimum and maximum distance between consecutive key
39 frames (independently decodable frames) in the output animation.
40 The tool will insert some key frames into the output animation
41 as needed so that this criteria is satisfied.
42 -mixed Mixed compression mode: optimize compression of the image
43 by picking either lossy or lossless compression for each frame
44 heuristically. This global option disables the local option
45 -lossy and -lossless .
46
47 -loop int
48 Specifies the number of times the animation should loop. Using
49 '0' means 'loop indefinitely'.
50
51 -v Be more verbose.
52
53 -h, -help
54 A short usage summary.
55
56 -version
57 Print the version numbers of the relevant libraries used.
58
59
61 The per-frame options are applied for the images following as arguments
62 in the command line. They can be modified any number of times preceding
63 each particular input image.
64
65 -d int Specify the image duration in milliseconds.
66
67 -lossless, -lossy
68 Compress the next image(s) using lossless or lossy compression
69 mode. The default mode is lossless.
70
71 -q float
72 Specify the compression factor between 0 and 100. The default is
73 75.
74
75 -m int Specify the compression method to use. This parameter controls
76 the trade off between encoding speed and the compressed file
77 size and quality. Possible values range from 0 to 6. Default
78 value is 4.
79
80
82 img2webp -loop 2 in0.png -lossy in1.jpg -d 80 in2.tiff -o out.webp
83
84
86 Please report all bugs to the issue tracker:
87 https://bugs.chromium.org/p/webp
88 Patches welcome! See this page to get started: http://www.webmpro‐
89 ject.org/code/contribute/submitting-patches/
90
91
93 img2webp is a part of libwebp and was written by the WebP team.
94 The latest source tree is available at https://chromium.google‐
95 source.com/webm/libwebp
96
97 This manual page was written by Pascal Massimino <pascal.mas‐
98 simino@gmail.com>, for the Debian project (and may be used by others).
99
100
102 webpmux(1), gif2webp(1)
103 Please refer to http://developers.google.com/speed/webp/ for additional
104 information.
105
106
107
108 May 1, 2020 IMG2WEBP(1)