Skip to content

ElectronResizeOptions

Unofficial

Options for NativeImage.resize.

Import:

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

Signature:

export interface ElectronResizeOptions

Properties

PropertyTypeDescription
height?numberThe desired height of the resized image. Defaults to the image's height.
quality?stringThe 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?numberThe desired width of the resized image. Defaults to the image's width.