Trilium Frontend API
    Preparing search index...

    Interface AddRepresentationOptions

    interface AddRepresentationOptions {
        buffer?: Buffer;
        dataURL?: string;
        height?: number;
        scaleFactor?: number;
        width?: number;
    }
    Index

    Properties

    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

    Defaults to 0. Required if a bitmap buffer is specified as buffer.

    scaleFactor?: number

    The scale factor to add the image representation for.

    width?: number

    Defaults to 0. Required if a bitmap buffer is specified as buffer.