Skip to content

ElectronAddRepresentationOptions

Unofficial

Options for NativeImage.addRepresentation.

Import:

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

Signature:

export interface ElectronAddRepresentationOptions

Properties

PropertyTypeDescription
buffer?BufferThe buffer containing the raw image data.
dataURL?stringThe data URL containing either a base 64 encoded PNG or JPEG image.
height?numberThe height of the image representation. Required if a bitmap buffer is specified as buffer.
scaleFactornumberThe scale factor to add the image representation for.
width?numberThe width of the image representation. Required if a bitmap buffer is specified as buffer.