Allow non-0 quality in webp (#876)

This commit is contained in:
Jake Archibald
2020-12-07 11:35:27 +00:00
committed by GitHub
parent 3abc770053
commit 7699f75b45
3 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ val encode(std::string img, int width, int height, WebPConfig config) {
return val::null();
}
// Allow quality to go higher than 0.
config.qmax = 100;
// Only use use_argb if we really need it, as it's slower.
pic.use_argb = config.lossless || config.use_sharp_yuv || config.preprocessing > 0;
pic.width = width;

Binary file not shown.

BIN
codecs/webp/enc/webp_enc_simd.wasm Normal file → Executable file

Binary file not shown.