Optionalheight: numberAs above, naming the layout the bytes are in.
settings carries the colorType and colorSpace the pixels should be
read as, alongside the fetch request options used when src is a remote
URL. Both default to the putImageData wire format: "rgba" in "srgb",
unpremultiplied.
Optionalsettings: ImageDataSettings & RequestInitTakes the raw pixels of a Sharp image.
No dimensions are asked for: Sharp reports its own, and they are used in preference to anything passed. The image gains an alpha channel if it has none.
Reads raw pixels into an ImageData, from the same sources loadImage takes.
The bytes are treated as pixels rather than as an encoded image, so the dimensions cannot be inferred from them and
widthis required.heightis derived from the buffer's length when it is left out.