downscale
function downscale(
Function: downscale()
function downscale(
rgba,
width,
height,
maxWidth): {
height: number;
rgba: Uint8Array;
width: number;
};Defined in: packages/export/src/Stills.ts:211
Box-downscale an RGBA image to at most maxWidth wide, keeping aspect.
Returns the input untouched when it already fits. Pure.
Parameters
| Parameter | Type |
|---|---|
rgba | Uint8Array |
width | number |
height | number |
maxWidth | number |
Returns
{
height: number;
rgba: Uint8Array;
width: number;
}height
height: number;rgba
rgba: Uint8Array;width
width: number;