From fcff86c71b88e5819a9676b3fd1e0a8f8176972b Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 26 Nov 2024 13:01:44 -0800 Subject: [PATCH] {gif,img}2webp: sync -m help w/cwebp These were both missing the mention of the default value (4). Bug: webm:381109771 Change-Id: Ibb0d822310af443c5ff5219fc0334008de0a0c60 --- doc/tools.md | 4 ++-- examples/gif2webp.c | 3 ++- examples/img2webp.c | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/tools.md b/doc/tools.md index de8eab49..78506b9d 100644 --- a/doc/tools.md +++ b/doc/tools.md @@ -324,7 +324,7 @@ Per-frame options (only used for subsequent images input): -lossless ............ use lossless mode (default) -lossy ............... use lossy mode -q ........... quality --m ............. method to use +-m ............. compression method (0=fast, 6=slowest), default=4 -exact, -noexact ..... preserve or alter RGB values in transparent area (default: -noexact, may cause artifacts with lossy animations) @@ -359,7 +359,7 @@ Options: -sharp_yuv ............. use sharper (and slower) RGB->YUV conversion (lossy only) -q ............. quality factor (0:small..100:big) --m ............... compression method (0=fast, 6=slowest) +-m ............... compression method (0=fast, 6=slowest), default=4 -min_size .............. minimize output size (default:off) lossless compression by default; can be combined with -q, -m, -lossy or -mixed diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 76fb4787..532cfcf6 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -77,7 +77,8 @@ static void Help(void) { "conversion\n" " (lossy only)\n"); printf(" -q ............. quality factor (0:small..100:big)\n"); - printf(" -m ............... compression method (0=fast, 6=slowest)\n"); + printf(" -m ............... compression method (0=fast, 6=slowest), " + "default=4\n"); printf(" -min_size .............. minimize output size (default:off)\n" " lossless compression by default; can be\n" " combined with -q, -m, -lossy or -mixed\n" diff --git a/examples/img2webp.c b/examples/img2webp.c index 19acda98..ca1d0fd8 100644 --- a/examples/img2webp.c +++ b/examples/img2webp.c @@ -62,7 +62,8 @@ static void Help(void) { printf(" -lossless ............ use lossless mode (default)\n"); printf(" -lossy ............... use lossy mode\n"); printf(" -q ........... quality\n"); - printf(" -m ............. method to use\n"); + printf(" -m ............. compression method (0=fast, 6=slowest), " + "default=4\n"); printf(" -exact, -noexact ..... preserve or alter RGB values in transparent " "area\n" " (default: -noexact, may cause artifacts\n"