mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 16:57:26 +00:00
Allow non-0 quality in webp (#876)
This commit is contained in:
@@ -26,6 +26,9 @@ val encode(std::string img, int width, int height, WebPConfig config) {
|
|||||||
return val::null();
|
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.
|
// 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.use_argb = config.lossless || config.use_sharp_yuv || config.preprocessing > 0;
|
||||||
pic.width = width;
|
pic.width = width;
|
||||||
|
|||||||
Binary file not shown.
BIN
codecs/webp/enc/webp_enc_simd.wasm
Normal file → Executable file
BIN
codecs/webp/enc/webp_enc_simd.wasm
Normal file → Executable file
Binary file not shown.
Reference in New Issue
Block a user