From 41961f138a5ea906164a843921ba739479bdf374 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 30 Jun 2020 20:00:42 +0100 Subject: [PATCH] webpsave: when minimising the size of an animated WebP image, allow the encoder to evaluate and mix lossy+lossless frames, which minimises the size of the file by a further ~5%. See https://github.com/webmproject/libwebp/commit/f29bf582df2349b29264e188670750b54850651e --- libvips/foreign/vips2webp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvips/foreign/vips2webp.c b/libvips/foreign/vips2webp.c index c63f2a8d..f480e67d 100644 --- a/libvips/foreign/vips2webp.c +++ b/libvips/foreign/vips2webp.c @@ -310,6 +310,7 @@ write_webp_anim( VipsWebPWrite *write, VipsImage *image, int page_height ) } anim_config.minimize_size = write->min_size; + anim_config.allow_mixed = write->min_size; anim_config.kmin = write->kmin; anim_config.kmax = write->kmax;