Remove web codecs usage

It was decoding transparency incorrectly (multiplication wrong?), and I'd rather not have a different code path there for the sake of it
This commit is contained in:
jakearchibald
2022-12-15 14:56:51 +00:00
parent 97d13de273
commit 42594277fd
5 changed files with 6 additions and 127 deletions

View File

@@ -114,7 +114,7 @@ async function decodeImage(
}
}
// Otherwise fall through and try built-in decoding for a laugh.
return await builtinDecode(signal, blob, mimeType);
return await builtinDecode(signal, blob);
} catch (err) {
if (err instanceof Error && err.name === 'AbortError') throw err;
console.log(err);