mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
TypeScript: consolidate a few enum-like properties
This commit is contained in:
@@ -321,7 +321,7 @@ sharp('input.gif')
|
||||
// From https://sharp.pixelplumbing.com/api-output#examples-9
|
||||
// Extract raw RGB pixel data from JPEG input
|
||||
sharp('input.jpg')
|
||||
.raw()
|
||||
.raw({ depth: 'ushort' })
|
||||
.toBuffer({ resolveWithObject: true })
|
||||
.then(({ data, info }) => {
|
||||
console.log(data);
|
||||
|
||||
Reference in New Issue
Block a user