Dear libwebp team,
I am currently using gif2webp from libwebp7 1.3.2-0.4build3 in Ubuntu 24.04.
When converting screencasts with lossy compression, the colors look washed-out.
I am writing to request the addition of a -sharp_yuv command line option for
the gif2webp example, to bring it in line with other tools such as cwebp.
I tested conversion with the following diff applied:
diff -u examples/gif2webp.c.orig examples/gif2webp.c
--- examples/gif2webp.c.orig 2024-10-24 02:23:51.629942619 +0200
+++ examples/gif2webp.c 2024-10-24 02:24:01.456995741 +0200
@@ -143,6 +143,7 @@
FREE_WARGV_AND_RETURN(-1);
}
config.lossless = 1; // Use lossless compression by default.
+ config.use_sharp_yuv = 1;
WebPDataInit(&webp_data);
WebPDataInit(&icc_data);
Adding this flag is enough to fix the issue, but since the output
size increases, making it optional behind -sharp_yuv would be
preferred.
Thanks for consideration.
--
https://testbit.eu/timj
Free software author.