SharpProcessorOptions
Options of sharpProcessor.
Options of sharpProcessor.
Import#
ts
import type { SharpProcessorOptions } from "@shadow-js/dusk/server";
Signature#
ts
interface SharpProcessorOptions {
/** The `sharp` factory. Default: the installed `sharp` package, loaded on first use. */
readonly sharp?: SharpFactory;
/**
* Most pixels a source may decode to. Default 25 000 000 (a 6000 x 4000 photo). A tiny PNG can declare billions of
* pixels, so the size on the wire (`maxSourceBytes`) bounds nothing about the memory a decode takes; this does.
*/
readonly maxInputPixels?: number;
}
Members#
| Name | Type | Description |
|---|---|---|
sharp? |
readonly sharp?: SharpFactory |
The sharp factory. Default: the installed sharp package, loaded on first use. |
maxInputPixels? |
readonly maxInputPixels?: number |
Most pixels a source may decode to. Default 25 000 000 (a 6000 x 4000 photo). A tiny PNG can declare billions of pixels, so the size on the wire (maxSourceBytes) bounds nothing about the memory a decode takes; this does. |