Lossy WebP: Enable sharp RGB to YUV conversion

This commit is contained in:
DeeJayLSP 2023-07-09 18:04:23 -03:00
parent 85c9db592f
commit 31ca736536
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ Vector<uint8_t> _webp_packer(const Ref<Image> &p_image, float p_quality, bool p_
} }
config.method = compression_method; config.method = compression_method;
config.quality = p_quality; config.quality = p_quality;
config.use_sharp_yuv = 1;
pic.use_argb = 1; pic.use_argb = 1;
pic.width = s.width; pic.width = s.width;
pic.height = s.height; pic.height = s.height;