Skip to content

ElectronNativeImage.resize method

ElectronNativeImage › resize

Unofficial

Returns a resized copy of the image. If only the height or the width is specified then the current aspect ratio is preserved in the resized image.

Signature:

resize(options: ElectronResizeOptions): ElectronNativeImage

Parameters:

Parameter Type Description
options ElectronResizeOptions Options for the resize including width, height, and quality.

Returns: ElectronNativeImageThe resized image.