mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Update cli/src/codecs.js
This commit is contained in:
@@ -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);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user