Ensure WebP quality option is set for lossless
This commit is contained in:
parent
5657099223
commit
8d0a42efe2
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user