mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +00:00
Add PNG encoding support
This commit is contained in:
@@ -133,7 +133,10 @@ export default {
|
||||
},
|
||||
enc: async () => {
|
||||
await pngEncDecPromise;
|
||||
return { encode: (...args) => new Uint8Array(pngEncode(...args)) };
|
||||
return {
|
||||
encode: (buffer, ...args) =>
|
||||
new Uint8Array(pngEncode(new Uint8Array(buffer), ...args))
|
||||
};
|
||||
},
|
||||
defaultEncoderOptions: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user