mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 01:59:57 +00:00
Its working now
This commit is contained in:
@@ -21,6 +21,6 @@ export async function decode(
|
||||
// Non-obvious way to turn an Blob into a ReadableStream
|
||||
data: new Response(blob).body!,
|
||||
});
|
||||
const result = await decoder.decode();
|
||||
return drawableToImageData(result.image);
|
||||
const { image } = await decoder.decode();
|
||||
return drawableToImageData(image);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user