mirror of
https://github.com/lovell/sharp.git
synced 2026-02-09 08:06:14 +01:00
Add toArrayBuffer to generate transferable output #4355
This commit is contained in:
@@ -86,6 +86,10 @@ let transformer = sharp()
|
||||
});
|
||||
readableStream.pipe(transformer).pipe(writableStream);
|
||||
|
||||
sharp().toArrayBuffer();
|
||||
sharp().toArrayBuffer().then(({ data }) => data);
|
||||
sharp().toArrayBuffer().then(({ data }) => new Uint8Array(data));
|
||||
|
||||
console.log(sharp.format);
|
||||
console.log(sharp.versions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user