Skip to content

ElectronAddRepresentationOptions

Unofficial

Options for NativeImage.addRepresentation.

Import:

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

Signature:

export interface ElectronAddRepresentationOptions

Properties

Property Type Description
buffer? Buffer The buffer containing the raw image data.
dataURL? string The data URL containing either a base 64 encoded PNG or JPEG image.
height? number The height of the image representation. Required if a bitmap buffer is specified as buffer.
scaleFactor number The scale factor to add the image representation for.
width? number The width of the image representation. Required if a bitmap buffer is specified as buffer.