mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
Update cli/src/codecs.js
This commit is contained in:
@@ -344,9 +344,7 @@ export const codecs = {
|
|||||||
await oxipngPromise;
|
await oxipngPromise;
|
||||||
return {
|
return {
|
||||||
encode: (buffer, width, height, opts) => {
|
encode: (buffer, width, height, opts) => {
|
||||||
const simplePng = new Uint8Array(
|
const simplePng = pngEncDec.encode(new Uint8Array(buffer), width, height);
|
||||||
pngEncDec.encode(new Uint8Array(buffer), width, height),
|
|
||||||
);
|
|
||||||
return oxipng.optimise(simplePng, opts.level);
|
return oxipng.optimise(simplePng, opts.level);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user