forked from Green-Sky/tomato
preserve argb for lossless webp
This commit is contained in:
parent
d9f2f90a5a
commit
c1bfed50b6
@ -141,6 +141,9 @@ std::vector<uint8_t> ImageEncoderWebP::encodeToMemoryRGBA(const ImageResult& inp
|
||||
}
|
||||
frame_webp.width = input_image.width;
|
||||
frame_webp.height = input_image.height;
|
||||
if (lossless) {
|
||||
frame_webp.use_argb = 1;
|
||||
}
|
||||
if (!WebPPictureImportRGBA(&frame_webp, frame.data.data(), 4*input_image.width)) {
|
||||
std::cerr << "IEWebP error: WebPPictureImportRGBA()\n";
|
||||
return {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user