summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-03-20 19:46:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-03-20 19:46:23 +0000
commita4f048357956604790a08777149b4dbd248d0685 (patch)
treefa44ad21b5391860dc88874a49defbd7e206f186
parent1275fac820fafe54df193d97168d97e672274b4a (diff)
parent2fe27bb96db10f8152e91c7e75277d65d1c1851b (diff)
downloadlibwebp-a4f048357956604790a08777149b4dbd248d0685.tar.gz
Merge changes Ic389aaa2,I329ccd79 into main
* changes: img2webp: normalize help output cwebp: reflow -near_lossless help text
-rw-r--r--doc/tools.md8
-rw-r--r--examples/cwebp.c5
-rw-r--r--examples/img2webp.c6
-rw-r--r--man/img2webp.14
4 files changed, 11 insertions, 12 deletions
diff --git a/doc/tools.md b/doc/tools.md
index 20fc22a3..bf492746 100644
--- a/doc/tools.md
+++ b/doc/tools.md
@@ -82,8 +82,8 @@ Options:
green=0xe0 and blue=0xd0
-noalpha ............... discard any transparency information
-lossless .............. encode image losslessly, default=off
--near_lossless <int> ... use near-lossless image
- preprocessing (0..100=off), default=100
+-near_lossless <int> ... use near-lossless image preprocessing
+ (0..100=off), default=100
-hint <string> ......... specify image characteristics hint,
one of: photo, picture or graph
@@ -295,14 +295,13 @@ etc.
Usage:
```shell
-img2webp [file_options] [[frame_options] frame_file]...
+img2webp [file_options] [[frame_options] frame_file]... [-o webp_file]
```
File-level options (only used at the start of compression):
```
-min_size ............ minimize size
--loop <int> .......... loop count (default: 0, = infinite loop)
-kmax <int> .......... maximum number of frame between key-frames
(0=only keyframes)
-kmin <int> .......... minimum number of frame between key-frames
@@ -312,6 +311,7 @@ File-level options (only used at the start of compression):
(0..100=off), default=100
-sharp_yuv ........... use sharper (and slower) RGB->YUV conversion
(lossy only)
+-loop <int> .......... loop count (default: 0, = infinite loop)
-v ................... verbose mode
-h ................... this help
-version ............. print version number and exit
diff --git a/examples/cwebp.c b/examples/cwebp.c
index 9adb31ec..835579d9 100644
--- a/examples/cwebp.c
+++ b/examples/cwebp.c
@@ -592,9 +592,8 @@ static void HelpLong(void) {
" green=0xe0 and blue=0xd0\n");
printf(" -noalpha ............... discard any transparency information\n");
printf(" -lossless .............. encode image losslessly, default=off\n");
- printf(" -near_lossless <int> ... use near-lossless image\n"
- " preprocessing (0..100=off), "
- "default=100\n");
+ printf(" -near_lossless <int> ... use near-lossless image preprocessing\n"
+ " (0..100=off), default=100\n");
printf(" -hint <string> ......... specify image characteristics hint,\n");
printf(" one of: photo, picture or graph\n");
diff --git a/examples/img2webp.c b/examples/img2webp.c
index cdb8d574..3735030c 100644
--- a/examples/img2webp.c
+++ b/examples/img2webp.c
@@ -36,12 +36,11 @@
static void Help(void) {
printf("Usage:\n\n");
- printf(" img2webp [file_options] [[frame_options] frame_file]...\n");
- printf("\n");
+ printf(" img2webp [file_options] [[frame_options] frame_file]...");
+ printf(" [-o webp_file]\n\n");
printf("File-level options (only used at the start of compression):\n");
printf(" -min_size ............ minimize size\n");
- printf(" -loop <int> .......... loop count (default: 0, = infinite loop)\n");
printf(" -kmax <int> .......... maximum number of frame between key-frames\n"
" (0=only keyframes)\n");
printf(" -kmin <int> .......... minimum number of frame between key-frames\n"
@@ -52,6 +51,7 @@ static void Help(void) {
printf(" -sharp_yuv ........... use sharper (and slower) RGB->YUV "
"conversion\n "
"(lossy only)\n");
+ printf(" -loop <int> .......... loop count (default: 0, = infinite loop)\n");
printf(" -v ................... verbose mode\n");
printf(" -h ................... this help\n");
printf(" -version ............. print version number and exit\n");
diff --git a/man/img2webp.1 b/man/img2webp.1
index 83e9859c..fc493e12 100644
--- a/man/img2webp.1
+++ b/man/img2webp.1
@@ -1,10 +1,10 @@
.\" Hey, EMACS: -*- nroff -*-
-.TH IMG2WEBP 1 "March 16, 2023"
+.TH IMG2WEBP 1 "March 17, 2023"
.SH NAME
img2webp \- create animated WebP file from a sequence of input images.
.SH SYNOPSIS
.B img2webp
-[file_options] [[frame_options] frame_file]...
+[file_options] [[frame_options] frame_file]... [\-o webp_file]
.br
.B img2webp argument_file_name
.br