Fixing sharp & preprocess settings

This commit is contained in:
Jake Archibald
2018-12-17 10:01:47 +00:00
parent f6d12985a9
commit 9260bed1b1
4 changed files with 27 additions and 46 deletions

View File

@@ -26,7 +26,7 @@ val encode(std::string img, int width, int height, WebPConfig config) {
throw std::runtime_error("Unexpected error");
}
pic.use_argb = !!config.lossless;
pic.use_argb = 1;
pic.width = width;
pic.height = height;
pic.writer = WebPMemoryWrite;