Ensure WebP quality option is set for lossless

This commit is contained in:
Lovell Fuller 2019-06-05 23:01:06 +01:00
parent 5657099223
commit 8d0a42efe2

View File

@ -179,6 +179,8 @@ vips_webp_write_init( VipsWebPWrite *write, VipsImage *image,
write->config.alpha_quality = alpha_q; write->config.alpha_quality = alpha_q;
write->config.method = reduction_effort; write->config.method = reduction_effort;
if( lossless )
write->config.quality = Q;
if( near_lossless ) if( near_lossless )
write->config.near_lossless = Q; write->config.near_lossless = Q;
if( smart_subsample ) if( smart_subsample )