2011-09-30 10:11:29 +02:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2024-05-01 03:18:23 +02:00
|
|
|
.TH WEBPMUX 1 "April 30, 2024"
|
2011-09-30 10:11:29 +02:00
|
|
|
.SH NAME
|
2014-08-29 22:13:49 +02:00
|
|
|
webpmux \- create animated WebP files from non\-animated WebP images, extract
|
|
|
|
frames from animated WebP images, and manage XMP/EXIF metadata and ICC profile.
|
2011-09-30 10:11:29 +02:00
|
|
|
.SH SYNOPSIS
|
2011-11-04 00:10:27 +01:00
|
|
|
.B webpmux \-get
|
2011-09-30 10:11:29 +02:00
|
|
|
.I GET_OPTIONS
|
|
|
|
.I INPUT
|
2011-11-04 00:10:27 +01:00
|
|
|
.B \-o
|
2011-09-30 10:11:29 +02:00
|
|
|
.I OUTPUT
|
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
.B webpmux \-set
|
2011-09-30 10:11:29 +02:00
|
|
|
.I SET_OPTIONS
|
|
|
|
.I INPUT
|
2011-11-04 00:10:27 +01:00
|
|
|
.B \-o
|
2011-09-30 10:11:29 +02:00
|
|
|
.I OUTPUT
|
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
.B webpmux \-strip
|
2011-09-30 10:11:29 +02:00
|
|
|
.I STRIP_OPTIONS
|
|
|
|
.I INPUT
|
2011-11-04 00:10:27 +01:00
|
|
|
.B \-o
|
2011-09-30 10:11:29 +02:00
|
|
|
.I OUTPUT
|
|
|
|
.br
|
2012-01-24 21:46:46 +01:00
|
|
|
.B webpmux \-frame
|
2011-09-30 10:11:29 +02:00
|
|
|
.I FRAME_OPTIONS
|
2012-11-01 23:34:46 +01:00
|
|
|
.B [ \-frame ... ] [ \-loop
|
2011-09-30 10:11:29 +02:00
|
|
|
.I LOOP_COUNT
|
2012-11-01 23:34:46 +01:00
|
|
|
.B ]
|
|
|
|
.br
|
|
|
|
.RS 8
|
|
|
|
.B [ \-bgcolor
|
|
|
|
.I BACKGROUND_COLOR
|
|
|
|
.B ] \-o
|
2011-09-30 10:11:29 +02:00
|
|
|
.I OUTPUT
|
2012-11-01 23:34:46 +01:00
|
|
|
.RE
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
add a "-duration duration,start,end" option to webpmux
this will force a constant duration for an interval of frames
in an animation.
Notes:
a) '-duration [...]' can be repeated as many times as needed.
b) intervals are taken into account in option order. If they overlap, values will be overwritten.
c) 'start' and 'end' can be omitted, but not the duration value.
d) 'end' can be equal to '0', in which case it means 'last frame'
e) single-image files are untouched (ie. not turned into an animation file).
Some example usage:
webpmux -duration 150 in.webp -o out.webp
webpmux -duration 33,10,0 in.webp -o out.webp
webpmux -duration 200,2 -duration 150,0,50 in.webp -o out.webp
Change-Id: I9b595dafa77f9221bacd080be7858b1457f54636
2016-10-21 15:14:45 +02:00
|
|
|
.B webpmux \-duration
|
|
|
|
.I DURATION OPTIONS
|
|
|
|
.B [ \-duration ... ]
|
|
|
|
.I INPUT
|
|
|
|
.B \-o
|
|
|
|
.I OUTPUT
|
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
.B webpmux \-info
|
2011-09-30 10:11:29 +02:00
|
|
|
.I INPUT
|
|
|
|
.br
|
2012-01-24 21:46:46 +01:00
|
|
|
.B webpmux [\-h|\-help]
|
2013-02-26 23:22:06 +01:00
|
|
|
.br
|
|
|
|
.B webpmux \-version
|
2017-12-01 09:21:13 +01:00
|
|
|
.br
|
|
|
|
.B webpmux argument_file_name
|
2011-09-30 10:11:29 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
This manual page documents the
|
|
|
|
.B webpmux
|
|
|
|
command.
|
|
|
|
.PP
|
2014-08-29 22:13:49 +02:00
|
|
|
\fBwebpmux\fP can be used to create/extract from animated WebP files, as well as
|
|
|
|
to add/extract/strip XMP/EXIF metadata and ICC profile.
|
2017-12-01 09:21:13 +01:00
|
|
|
If a single file name (not starting with the character '\-') is supplied as
|
2018-04-24 01:06:54 +02:00
|
|
|
the argument, the command line arguments are actually tokenized from this file.
|
2020-05-01 19:31:39 +02:00
|
|
|
This allows for easy scripting or using a large number of arguments.
|
2011-09-30 10:11:29 +02:00
|
|
|
.SH OPTIONS
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS GET_OPTIONS (\-get):
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
|
|
|
.B icc
|
2012-11-01 00:30:41 +01:00
|
|
|
Get ICC profile.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2012-11-01 00:30:41 +01:00
|
|
|
.B exif
|
|
|
|
Get EXIF metadata.
|
|
|
|
.TP
|
|
|
|
.B xmp
|
|
|
|
Get XMP metadata.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI frame " n
|
2014-08-29 22:13:49 +02:00
|
|
|
Get nth frame from an animated image. (n = 0 has a special meaning: last frame).
|
2011-09-30 10:11:29 +02:00
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS SET_OPTIONS (\-set)
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2020-12-12 09:27:38 +01:00
|
|
|
.BI loop " loop_count
|
|
|
|
Set loop count on an animated file.
|
|
|
|
.P
|
|
|
|
Where: 'loop_count' must be in range [0, 65535].
|
|
|
|
.TP
|
2021-11-03 11:41:50 +01:00
|
|
|
.BI bgcolor " A,R,G,B
|
|
|
|
Set the background color of the canvas on an animated file.
|
|
|
|
.P
|
2021-11-04 22:51:48 +01:00
|
|
|
where: 'A', 'R', 'G' and 'B' are integers in the range 0 to 255 specifying the
|
|
|
|
Alpha, Red, Green and Blue component values respectively.
|
2021-11-03 11:41:50 +01:00
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI icc " file.icc
|
2012-11-01 00:30:41 +01:00
|
|
|
Set ICC profile.
|
|
|
|
.P
|
|
|
|
Where: 'file.icc' contains the ICC profile to be set.
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI exif " file.exif
|
2012-11-01 00:30:41 +01:00
|
|
|
Set EXIF metadata.
|
2012-08-23 12:15:39 +02:00
|
|
|
.P
|
2012-11-01 00:30:41 +01:00
|
|
|
Where: 'file.exif' contains the EXIF metadata to be set.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI xmp " file.xmp
|
2012-11-01 00:30:41 +01:00
|
|
|
Set XMP metadata.
|
2012-08-23 12:15:39 +02:00
|
|
|
.P
|
2012-11-01 00:30:41 +01:00
|
|
|
Where: 'file.xmp' contains the XMP metadata to be set.
|
2011-09-30 10:11:29 +02:00
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS STRIP_OPTIONS (\-strip)
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
|
|
|
.B icc
|
2012-11-01 00:30:41 +01:00
|
|
|
Strip ICC profile.
|
|
|
|
.TP
|
|
|
|
.B exif
|
|
|
|
Strip EXIF metadata.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2012-11-01 00:30:41 +01:00
|
|
|
.B xmp
|
|
|
|
Strip XMP metadata.
|
2011-09-30 10:11:29 +02:00
|
|
|
|
add a "-duration duration,start,end" option to webpmux
this will force a constant duration for an interval of frames
in an animation.
Notes:
a) '-duration [...]' can be repeated as many times as needed.
b) intervals are taken into account in option order. If they overlap, values will be overwritten.
c) 'start' and 'end' can be omitted, but not the duration value.
d) 'end' can be equal to '0', in which case it means 'last frame'
e) single-image files are untouched (ie. not turned into an animation file).
Some example usage:
webpmux -duration 150 in.webp -o out.webp
webpmux -duration 33,10,0 in.webp -o out.webp
webpmux -duration 200,2 -duration 150,0,50 in.webp -o out.webp
Change-Id: I9b595dafa77f9221bacd080be7858b1457f54636
2016-10-21 15:14:45 +02:00
|
|
|
.SS DURATION_OPTIONS (\-duration)
|
2016-11-10 08:26:01 +01:00
|
|
|
Amend the duration of a specific interval of frames. This option is only
|
|
|
|
effective on animated WebP and has no effect on a single-frame file.
|
add a "-duration duration,start,end" option to webpmux
this will force a constant duration for an interval of frames
in an animation.
Notes:
a) '-duration [...]' can be repeated as many times as needed.
b) intervals are taken into account in option order. If they overlap, values will be overwritten.
c) 'start' and 'end' can be omitted, but not the duration value.
d) 'end' can be equal to '0', in which case it means 'last frame'
e) single-image files are untouched (ie. not turned into an animation file).
Some example usage:
webpmux -duration 150 in.webp -o out.webp
webpmux -duration 33,10,0 in.webp -o out.webp
webpmux -duration 200,2 -duration 150,0,50 in.webp -o out.webp
Change-Id: I9b595dafa77f9221bacd080be7858b1457f54636
2016-10-21 15:14:45 +02:00
|
|
|
.TP
|
|
|
|
.I duration[,start[,end]]
|
|
|
|
Where:
|
2016-11-10 08:26:01 +01:00
|
|
|
.br
|
|
|
|
.B duration
|
|
|
|
is the duration for the interval in milliseconds (mandatory).
|
|
|
|
Must be non-negative.
|
|
|
|
.br
|
|
|
|
.B start
|
|
|
|
is the starting frame index of the interval (optional).
|
|
|
|
.br
|
|
|
|
.B end
|
|
|
|
is the ending frame index (inclusive) of the interval (optional).
|
|
|
|
.TP
|
|
|
|
The three typical usages of this option are:
|
|
|
|
.br
|
|
|
|
.B -duration d
|
|
|
|
set the duration to 'd' for the whole animation.
|
|
|
|
.br
|
|
|
|
.B -duration d,f
|
|
|
|
set the duration of frame 'f' to 'd'.
|
|
|
|
.br
|
|
|
|
.B -duration d,start,end
|
|
|
|
set the duration to 'd' for the whole [start,end] interval.
|
|
|
|
.TP
|
|
|
|
.P
|
add a "-duration duration,start,end" option to webpmux
this will force a constant duration for an interval of frames
in an animation.
Notes:
a) '-duration [...]' can be repeated as many times as needed.
b) intervals are taken into account in option order. If they overlap, values will be overwritten.
c) 'start' and 'end' can be omitted, but not the duration value.
d) 'end' can be equal to '0', in which case it means 'last frame'
e) single-image files are untouched (ie. not turned into an animation file).
Some example usage:
webpmux -duration 150 in.webp -o out.webp
webpmux -duration 33,10,0 in.webp -o out.webp
webpmux -duration 200,2 -duration 150,0,50 in.webp -o out.webp
Change-Id: I9b595dafa77f9221bacd080be7858b1457f54636
2016-10-21 15:14:45 +02:00
|
|
|
Note that the frames outside of the [start, end] interval will remain untouched.
|
2016-11-10 08:26:01 +01:00
|
|
|
The 'end' value '0' has the special meaning 'last frame of the animation'.
|
|
|
|
.TP
|
|
|
|
.I Reminder:
|
|
|
|
frame indexing starts at '1'.
|
add a "-duration duration,start,end" option to webpmux
this will force a constant duration for an interval of frames
in an animation.
Notes:
a) '-duration [...]' can be repeated as many times as needed.
b) intervals are taken into account in option order. If they overlap, values will be overwritten.
c) 'start' and 'end' can be omitted, but not the duration value.
d) 'end' can be equal to '0', in which case it means 'last frame'
e) single-image files are untouched (ie. not turned into an animation file).
Some example usage:
webpmux -duration 150 in.webp -o out.webp
webpmux -duration 33,10,0 in.webp -o out.webp
webpmux -duration 200,2 -duration 150,0,50 in.webp -o out.webp
Change-Id: I9b595dafa77f9221bacd080be7858b1457f54636
2016-10-21 15:14:45 +02:00
|
|
|
.br
|
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS FRAME_OPTIONS (\-frame)
|
2014-08-29 22:13:49 +02:00
|
|
|
Create an animated WebP file from multiple (non\-animated) WebP images.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2013-08-27 03:04:52 +02:00
|
|
|
.I file_i +di[+xi+yi[+mi[bi]]]
|
2012-11-01 00:30:41 +01:00
|
|
|
Where: 'file_i' is the i'th frame (WebP format), 'xi','yi' specify the image
|
2013-08-27 03:04:52 +02:00
|
|
|
offset for this frame, 'di' is the pause duration before next frame, 'mi' is
|
|
|
|
the dispose method for this frame (0 for NONE or 1 for BACKGROUND) and 'bi' is
|
2014-08-29 22:13:49 +02:00
|
|
|
the blending method for this frame (+b for BLEND or \-b for NO_BLEND).
|
2013-08-27 03:04:52 +02:00
|
|
|
Argument 'bi' can be omitted and will default to +b (BLEND).
|
|
|
|
Also, 'mi' can be omitted if 'bi' is omitted and will default to 0 (NONE).
|
|
|
|
Finally, if 'mi' and 'bi' are omitted then 'xi' and 'yi' can be omitted and will
|
2012-11-14 06:19:31 +01:00
|
|
|
default to +0+0.
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-loop " n
|
2011-11-04 00:10:27 +01:00
|
|
|
Loop the frames n number of times. 0 indicates the frames should loop forever.
|
2012-11-01 23:34:46 +01:00
|
|
|
Valid range is 0 to 65535 [Default: 0 (infinite)].
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-bgcolor " A,R,G,B
|
2012-11-01 23:34:46 +01:00
|
|
|
Background color of the canvas.
|
|
|
|
.br
|
|
|
|
where: 'A', 'R', 'G' and 'B' are integers in the range 0 to 255 specifying the
|
|
|
|
Alpha, Red, Green and Blue component values respectively
|
|
|
|
[Default: 255,255,255,255].
|
2011-09-30 10:11:29 +02:00
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS INPUT
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
|
|
|
Input file in WebP format.
|
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SS OUTPUT (\-o)
|
2011-09-30 10:11:29 +02:00
|
|
|
.TP
|
|
|
|
Output file in WebP format.
|
|
|
|
|
2012-11-01 00:30:41 +01:00
|
|
|
.SS Note:
|
|
|
|
.TP
|
|
|
|
The nature of EXIF, XMP and ICC data is not checked and is assumed to be valid.
|
|
|
|
|
2024-05-01 03:18:23 +02:00
|
|
|
.SH EXIT STATUS
|
|
|
|
If there were no problems during execution, \fBwebpmux\fP exits with the value
|
|
|
|
of the C constant \fBEXIT_SUCCESS\fP. This is usually zero.
|
|
|
|
.PP
|
|
|
|
If an error occurs, \fBwebpmux\fP exits with the value of the C constant
|
|
|
|
\fBEXIT_FAILURE\fP. This is usually one.
|
|
|
|
|
2012-01-25 02:39:05 +01:00
|
|
|
.SH BUGS
|
2016-06-23 22:53:15 +02:00
|
|
|
Please report all bugs to the issue tracker:
|
2015-10-20 05:06:50 +02:00
|
|
|
https://bugs.chromium.org/p/webp
|
2012-01-25 02:39:05 +01:00
|
|
|
.br
|
|
|
|
Patches welcome! See this page to get started:
|
2021-11-17 20:16:58 +01:00
|
|
|
https://www.webmproject.org/code/contribute/submitting\-patches/
|
2012-01-25 02:39:05 +01:00
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SH EXAMPLES
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Add ICC profile:
|
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
webpmux \-set icc image_profile.icc in.webp \-o icc_container.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Extract ICC profile:
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
webpmux \-get icc icc_container.webp \-o image_profile.icc
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Strip ICC profile:
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2012-11-01 00:30:41 +01:00
|
|
|
webpmux \-strip icc icc_container.webp \-o without_icc.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Add XMP metadata:
|
2012-11-01 00:30:41 +01:00
|
|
|
.br
|
|
|
|
webpmux \-set xmp image_metadata.xmp in.webp \-o xmp_container.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Extract XMP metadata:
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2012-11-01 00:30:41 +01:00
|
|
|
webpmux \-get xmp xmp_container.webp \-o image_metadata.xmp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Strip XMP metadata:
|
2012-11-01 00:30:41 +01:00
|
|
|
.br
|
|
|
|
webpmux \-strip xmp xmp_container.webp \-o without_xmp.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Add EXIF metadata:
|
2012-11-01 00:30:41 +01:00
|
|
|
.br
|
|
|
|
webpmux \-set exif image_metadata.exif in.webp \-o exif_container.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Extract EXIF metadata:
|
2012-11-01 00:30:41 +01:00
|
|
|
.br
|
|
|
|
webpmux \-get exif exif_container.webp \-o image_metadata.exif
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Strip EXIF metadata:
|
2012-11-01 00:30:41 +01:00
|
|
|
.br
|
|
|
|
webpmux \-strip exif exif_container.webp \-o without_exif.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Create an animated WebP file from 3 (non\-animated) WebP images:
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2014-08-29 22:13:49 +02:00
|
|
|
webpmux \-frame 1.webp +100 \-frame 2.webp +100+50+50
|
2012-11-01 23:34:46 +01:00
|
|
|
.br
|
|
|
|
.RS 8
|
2014-08-29 22:13:49 +02:00
|
|
|
\-frame 3.webp +100+50+50+1+b \-loop 10 \-bgcolor 255,255,255,255
|
2013-08-27 03:04:52 +02:00
|
|
|
.br
|
|
|
|
\-o anim_container.webp
|
2012-11-01 23:34:46 +01:00
|
|
|
.RE
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Get the 2nd frame from an animated WebP file:
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2011-11-04 00:10:27 +01:00
|
|
|
webpmux \-get frame 2 anim_container.webp \-o frame_2.webp
|
2014-08-29 22:13:49 +02:00
|
|
|
.P
|
|
|
|
Using \-get/\-set/\-strip with input file name starting with '\-':
|
2013-12-18 05:50:46 +01:00
|
|
|
.br
|
|
|
|
webpmux \-set icc image_profile.icc \-o icc_container.webp \-\- \-\-\-in.webp
|
|
|
|
.br
|
|
|
|
webpmux \-get icc \-o image_profile.icc \-\- \-\-\-icc_container.webp
|
|
|
|
.br
|
|
|
|
webpmux \-strip icc \-o without_icc.webp \-\- \-\-\-icc_container.webp
|
2011-09-30 10:11:29 +02:00
|
|
|
|
2011-11-04 00:10:27 +01:00
|
|
|
.SH AUTHORS
|
2015-12-12 02:02:01 +01:00
|
|
|
\fBwebpmux\fP is a part of libwebp and was written by the WebP team.
|
2011-09-30 10:11:29 +02:00
|
|
|
.br
|
2015-12-12 02:02:01 +01:00
|
|
|
The latest source tree is available at
|
|
|
|
https://chromium.googlesource.com/webm/libwebp
|
2011-09-30 10:11:29 +02:00
|
|
|
.PP
|
|
|
|
This manual page was written by Vikas Arora <vikaas.arora@gmail.com>,
|
|
|
|
for the Debian project (and may be used by others).
|
2012-01-25 02:39:05 +01:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2012-11-16 00:55:06 +01:00
|
|
|
.BR cwebp (1),
|
2013-12-18 08:30:34 +01:00
|
|
|
.BR dwebp (1),
|
|
|
|
.BR gif2webp (1)
|
2012-01-25 02:39:05 +01:00
|
|
|
.br
|
2021-11-17 20:16:58 +01:00
|
|
|
Please refer to https://developers.google.com/speed/webp/ for additional
|
2012-07-21 01:19:12 +02:00
|
|
|
information.
|