Merge pull request #1331 from lovell/webp-lossless-quality

Ensure WebP quality option is set for lossless
This commit is contained in:
John Cupitt 2019-06-06 06:39:30 +01:00 committed by GitHub
commit bddbecffaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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