Skip to content

ElectronResizeOptions

Unofficial

Options for NativeImage.resize.

Import:

import type { ElectronResizeOptions } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ElectronResizeOptions

Properties

Property Type Description
height? number The desired height of the resized image. Defaults to the image's height.
quality? string The desired quality of the resized image. Possible values are best, better, or good. These values express a desired quality/speed tradeoff that is translated into an algorithm-specific method depending on the capabilities (CPU, GPU) of the underlying platform.
width? number The desired width of the resized image. Defaults to the image's width.