1 .\" Hey, EMACS: -*- nroff -*-
2 .TH WEBPMUX 1 "December 12, 2020"
4 webpmux \- create animated WebP files from non\-animated WebP images, extract
5 frames from animated WebP images, and manage XMP/EXIF metadata and ICC profile.
27 .B [ \-frame ... ] [ \-loop
48 .B webpmux [\-h|\-help]
52 .B webpmux argument_file_name
54 This manual page documents the
58 \fBwebpmux\fP can be used to create/extract from animated WebP files, as well as
59 to add/extract/strip XMP/EXIF metadata and ICC profile.
60 If a single file name (not starting with the character '\-') is supplied as
61 the argument, the command line arguments are actually tokenized from this file.
62 This allows for easy scripting or using a large number of arguments.
64 .SS GET_OPTIONS (\-get):
76 Get nth frame from an animated image. (n = 0 has a special meaning: last frame).
78 .SS SET_OPTIONS (\-set)
81 Set loop count on an animated file.
83 Where: 'loop_count' must be in range [0, 65535].
88 Where: 'file.icc' contains the ICC profile to be set.
93 Where: 'file.exif' contains the EXIF metadata to be set.
98 Where: 'file.xmp' contains the XMP metadata to be set.
100 .SS STRIP_OPTIONS (\-strip)
111 .SS DURATION_OPTIONS (\-duration)
112 Amend the duration of a specific interval of frames. This option is only
113 effective on animated WebP and has no effect on a single-frame file.
115 .I duration[,start[,end]]
119 is the duration for the interval in milliseconds (mandatory).
120 Must be non-negative.
123 is the starting frame index of the interval (optional).
126 is the ending frame index (inclusive) of the interval (optional).
128 The three typical usages of this option are:
131 set the duration to 'd' for the whole animation.
134 set the duration of frame 'f' to 'd'.
136 .B -duration d,start,end
137 set the duration to 'd' for the whole [start,end] interval.
140 Note that the frames outside of the [start, end] interval will remain untouched.
141 The 'end' value '0' has the special meaning 'last frame of the animation'.
144 frame indexing starts at '1'.
147 .SS FRAME_OPTIONS (\-frame)
148 Create an animated WebP file from multiple (non\-animated) WebP images.
150 .I file_i +di[+xi+yi[+mi[bi]]]
151 Where: 'file_i' is the i'th frame (WebP format), 'xi','yi' specify the image
152 offset for this frame, 'di' is the pause duration before next frame, 'mi' is
153 the dispose method for this frame (0 for NONE or 1 for BACKGROUND) and 'bi' is
154 the blending method for this frame (+b for BLEND or \-b for NO_BLEND).
155 Argument 'bi' can be omitted and will default to +b (BLEND).
156 Also, 'mi' can be omitted if 'bi' is omitted and will default to 0 (NONE).
157 Finally, if 'mi' and 'bi' are omitted then 'xi' and 'yi' can be omitted and will
161 Loop the frames n number of times. 0 indicates the frames should loop forever.
162 Valid range is 0 to 65535 [Default: 0 (infinite)].
164 .BI \-bgcolor " A,R,G,B
165 Background color of the canvas.
167 where: 'A', 'R', 'G' and 'B' are integers in the range 0 to 255 specifying the
168 Alpha, Red, Green and Blue component values respectively
169 [Default: 255,255,255,255].
173 Input file in WebP format.
177 Output file in WebP format.
181 The nature of EXIF, XMP and ICC data is not checked and is assumed to be valid.
184 Please report all bugs to the issue tracker:
185 https://bugs.chromium.org/p/webp
187 Patches welcome! See this page to get started:
188 http://www.webmproject.org/code/contribute/submitting\-patches/
194 webpmux \-set icc image_profile.icc in.webp \-o icc_container.webp
198 webpmux \-get icc icc_container.webp \-o image_profile.icc
202 webpmux \-strip icc icc_container.webp \-o without_icc.webp
206 webpmux \-set xmp image_metadata.xmp in.webp \-o xmp_container.webp
208 Extract XMP metadata:
210 webpmux \-get xmp xmp_container.webp \-o image_metadata.xmp
214 webpmux \-strip xmp xmp_container.webp \-o without_xmp.webp
218 webpmux \-set exif image_metadata.exif in.webp \-o exif_container.webp
220 Extract EXIF metadata:
222 webpmux \-get exif exif_container.webp \-o image_metadata.exif
226 webpmux \-strip exif exif_container.webp \-o without_exif.webp
228 Create an animated WebP file from 3 (non\-animated) WebP images:
230 webpmux \-frame 1.webp +100 \-frame 2.webp +100+50+50
233 \-frame 3.webp +100+50+50+1+b \-loop 10 \-bgcolor 255,255,255,255
235 \-o anim_container.webp
238 Get the 2nd frame from an animated WebP file:
240 webpmux \-get frame 2 anim_container.webp \-o frame_2.webp
242 Using \-get/\-set/\-strip with input file name starting with '\-':
244 webpmux \-set icc image_profile.icc \-o icc_container.webp \-\- \-\-\-in.webp
246 webpmux \-get icc \-o image_profile.icc \-\- \-\-\-icc_container.webp
248 webpmux \-strip icc \-o without_icc.webp \-\- \-\-\-icc_container.webp
251 \fBwebpmux\fP is a part of libwebp and was written by the WebP team.
253 The latest source tree is available at
254 https://chromium.googlesource.com/webm/libwebp
256 This manual page was written by Vikas Arora <vikaas.arora@gmail.com>,
257 for the Debian project (and may be used by others).
264 Please refer to http://developers.google.com/speed/webp/ for additional