2012-11-16 00:55:06 +01:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
2018-01-26 08:22:54 +01:00
|
|
|
.TH GIF2WEBP 1 "January 25, 2018"
|
2012-11-16 00:55:06 +01:00
|
|
|
.SH NAME
|
|
|
|
gif2webp \- Convert a GIF image to WebP
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B gif2webp
|
|
|
|
.RI [ options ] " input_file.gif \-o output_file.webp
|
|
|
|
.br
|
|
|
|
.SH DESCRIPTION
|
|
|
|
This manual page documents the
|
|
|
|
.B gif2webp
|
|
|
|
command.
|
|
|
|
.PP
|
|
|
|
\fBgif2webp\fP converts a GIF image to a WebP image.
|
|
|
|
.SH OPTIONS
|
|
|
|
The basic options are:
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-o " string
|
2012-11-16 00:55:06 +01:00
|
|
|
Specify the name of the output WebP file. If omitted, \fBgif2webp\fP will
|
|
|
|
perform conversion but only report statistics.
|
2014-03-12 19:32:16 +01:00
|
|
|
Using "\-" as output name will direct output to 'stdout'.
|
2012-11-16 00:55:06 +01:00
|
|
|
.TP
|
2018-01-26 08:22:54 +01:00
|
|
|
.BI \-\- " string
|
|
|
|
Explicitly specify the input file. This option is useful if the input
|
|
|
|
file starts with an '\-' for instance. This option must appear \fBlast\fP.
|
|
|
|
Any other options afterward will be ignored. If the input file is "\-",
|
|
|
|
the data will be read from \fIstdin\fP instead of a file.
|
|
|
|
.TP
|
2012-11-16 00:55:06 +01:00
|
|
|
.B \-h, \-help
|
|
|
|
Usage information.
|
|
|
|
.TP
|
|
|
|
.B \-version
|
|
|
|
Print the version number (as major.minor.revision) and exit.
|
|
|
|
.TP
|
|
|
|
.B \-lossy
|
|
|
|
Encode the image using lossy compression.
|
|
|
|
.TP
|
2013-11-18 03:04:07 +01:00
|
|
|
.B \-mixed
|
|
|
|
Mixed compression mode: optimize compression of the image by picking either
|
|
|
|
lossy or lossless compression for each frame heuristically.
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-q " float
|
2012-11-16 00:55:06 +01:00
|
|
|
Specify the compression factor for RGB channels between 0 and 100. The default
|
|
|
|
is 75.
|
|
|
|
.br
|
|
|
|
In case of lossless compression (default), a small factor enables faster
|
|
|
|
compression speed, but produces a larger file. Maximum compression is achieved
|
|
|
|
by using a value of 100.
|
|
|
|
.br
|
|
|
|
In case of lossy compression (specified by the \-lossy option), a small factor
|
|
|
|
produces a smaller file with lower quality. Best quality is achieved by using a
|
|
|
|
value of 100.
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-m " int
|
2012-11-16 00:55:06 +01:00
|
|
|
Specify the compression method to use. This parameter controls the
|
|
|
|
trade off between encoding speed and the compressed file size and quality.
|
|
|
|
Possible values range from 0 to 6. Default value is 4.
|
|
|
|
When higher values are used, the encoder will spend more time inspecting
|
|
|
|
additional encoding possibilities and decide on the quality gain.
|
|
|
|
Lower value can result is faster processing time at the expense of
|
|
|
|
larger file size and lower compression quality.
|
|
|
|
.TP
|
2014-10-30 23:17:09 +01:00
|
|
|
.BI \-min_size
|
|
|
|
Encode image to achieve smallest size. This disables key frame insertion and
|
|
|
|
picks the dispose method resulting in smallest output for each frame. It uses
|
|
|
|
lossless compression by default, but can be combined with \-q, \-m, \-lossy or
|
|
|
|
\-mixed options.
|
|
|
|
.TP
|
2013-09-12 22:41:09 +02:00
|
|
|
.BI \-kmin " int
|
|
|
|
.TP
|
2013-08-09 23:42:36 +02:00
|
|
|
.BI \-kmax " int
|
2013-09-12 22:41:09 +02:00
|
|
|
Specify the minimum and maximum distance between consecutive key frames
|
|
|
|
(independently decodable frames) in the output animation. The tool will insert
|
|
|
|
some key frames into the output animation as needed so that this criteria is
|
|
|
|
satisfied.
|
|
|
|
.br
|
2016-11-26 01:25:49 +01:00
|
|
|
A 'kmax' value of 0 will turn off insertion of key frames. A 'kmax' value of 1
|
|
|
|
will result in all frames being key frames. 'kmin' value is not taken into
|
|
|
|
account in both these special cases.
|
2013-09-30 23:25:58 +02:00
|
|
|
Typical values are in the range 3 to 30. Default values are kmin = 9,
|
|
|
|
kmax = 17 for lossless compression and kmin = 3, kmax = 5 for lossy compression.
|
2013-09-12 22:41:09 +02:00
|
|
|
.br
|
|
|
|
These two options are relevant only for animated images with large number of
|
|
|
|
frames (>50).
|
|
|
|
.br
|
2013-08-09 23:42:36 +02:00
|
|
|
When lower values are used, more frames will be converted to key frames. This
|
|
|
|
may lead to smaller number of frames required to decode a frame on average,
|
|
|
|
thereby improving the decoding performance. But this may lead to slightly bigger
|
|
|
|
file sizes.
|
|
|
|
Higher values may lead to worse decoding performance, but smaller file sizes.
|
2013-09-12 22:41:09 +02:00
|
|
|
.br
|
|
|
|
Some restrictions:
|
|
|
|
.br
|
|
|
|
(i) kmin < kmax,
|
|
|
|
.br
|
|
|
|
(ii) kmin >= kmax / 2 + 1 and
|
|
|
|
.br
|
|
|
|
(iii) kmax - kmin <= 30.
|
|
|
|
.br
|
|
|
|
If any of these restrictions are not met, they will be enforced automatically.
|
2013-08-09 23:42:36 +02:00
|
|
|
.TP
|
2013-12-10 23:53:06 +01:00
|
|
|
.BI \-metadata " string
|
|
|
|
A comma separated list of metadata to copy from the input to the output if
|
|
|
|
present.
|
|
|
|
Valid values: \fBall\fP, \fBnone\fP, \fBicc\fP, \fBxmp\fP.
|
|
|
|
The default is \fBxmp\fP.
|
|
|
|
.TP
|
2013-02-02 05:33:00 +01:00
|
|
|
.BI \-f " int
|
2012-11-16 00:55:06 +01:00
|
|
|
For lossy encoding only (specified by the \-lossy option). Specify the strength
|
|
|
|
of the deblocking filter, between 0 (no filtering) and 100 (maximum filtering).
|
|
|
|
A value of 0 will turn off any filtering. Higher value will increase the
|
|
|
|
strength of the filtering process applied after decoding the picture. The higher
|
|
|
|
the value the smoother the picture will appear. Typical values are usually in
|
|
|
|
the range of 20 to 50.
|
|
|
|
.TP
|
2013-12-18 02:01:59 +01:00
|
|
|
.B \-mt
|
2017-06-15 09:38:17 +02:00
|
|
|
Use multi-threading for encoding, if possible.
|
2017-11-30 07:59:30 +01:00
|
|
|
.TP
|
2017-09-19 08:38:09 +02:00
|
|
|
.B \-loop_compatibility
|
|
|
|
If enabled, handle the loop information in a compatible fashion for Chrome
|
|
|
|
version prior to M62 (inclusive) and Firefox.
|
2013-12-18 02:01:59 +01:00
|
|
|
.TP
|
2012-11-16 00:55:06 +01:00
|
|
|
.B \-v
|
|
|
|
Print extra information.
|
|
|
|
.TP
|
|
|
|
.B \-quiet
|
|
|
|
Do not print anything.
|
|
|
|
|
|
|
|
.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-11-16 00:55:06 +01:00
|
|
|
.br
|
|
|
|
Patches welcome! See this page to get started:
|
|
|
|
http://www.webmproject.org/code/contribute/submitting-patches/
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
gif2webp picture.gif \-o picture.webp
|
|
|
|
.br
|
|
|
|
gif2webp \-q 70 picture.gif \-o picture.webp
|
|
|
|
.br
|
|
|
|
gif2webp \-lossy \-m 3 picture.gif \-o picture_lossy.webp
|
|
|
|
.br
|
|
|
|
gif2webp \-lossy \-f 50 picture.gif \-o picture.webp
|
2013-12-13 05:20:08 +01:00
|
|
|
.br
|
|
|
|
gif2webp \-q 70 \-o picture.webp \-\- \-\-\-picture.gif
|
2018-01-26 08:22:54 +01:00
|
|
|
.br
|
|
|
|
cat picture.gif | gif2webp \-o \- \-\- \- > output.webp
|
2012-11-16 00:55:06 +01:00
|
|
|
|
|
|
|
.SH AUTHORS
|
2015-12-12 02:02:01 +01:00
|
|
|
\fBgif2webp\fP is a part of libwebp and was written by the WebP team.
|
2012-11-16 00:55:06 +01:00
|
|
|
.br
|
2015-12-12 02:02:01 +01:00
|
|
|
The latest source tree is available at
|
|
|
|
https://chromium.googlesource.com/webm/libwebp
|
2012-11-16 00:55:06 +01:00
|
|
|
.PP
|
|
|
|
This manual page was written by Urvang Joshi <urvang@google.com>, for the
|
|
|
|
Debian project (and may be used by others).
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR cwebp (1),
|
2013-12-18 08:30:34 +01:00
|
|
|
.BR dwebp (1),
|
|
|
|
.BR webpmux (1)
|
2012-11-16 00:55:06 +01:00
|
|
|
.br
|
|
|
|
Please refer to http://developers.google.com/speed/webp/ for additional
|
|
|
|
information.
|