Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Update cli/src/codecs.js
Ingvar Stepanyan4e4778397f63
diff --git a/cli/src/codecs.js b/cli/src/codecs.jsindex d4489fb8..5fe25788 100644--- a/cli/src/codecs.js+++ b/cli/src/codecs.js@@ -344,9 +344,7 @@ export const codecs = {await oxipngPromise;return {encode: (buffer, width, height, opts) => {- const simplePng = new Uint8Array(- pngEncDec.encode(new Uint8Array(buffer), width, height),- );+ const simplePng = pngEncDec.encode(new Uint8Array(buffer), width, height);return oxipng.optimise(simplePng, opts.level);},};