Blame man/gif2webp.1

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