ResizeOptions
Options for Image.resize().
Properties
width
width?: number;
Target width in pixels. If only width is provided, height is derived from the image aspect ratio.
height
height?: number;
Target height in pixels. If only height is provided, width is derived from the image aspect ratio.
scaleFactor
scaleFactor?: number;
Scale factor used when deriving the missing dimension from the aspect ratio.
Defaults to 1.0.
quality
quality?: ('low' | 'medium' | 'high');
Resize quality. Higher values use a sharper filter.