matrix-js-sdk

    Interface ImageInfo

    Information on media attachments of msgtype m.image

    Used within m.room.message events that reference images.

    interface ImageInfo {
        h?: number;
        mimetype?: string;
        size?: number;
        thumbnail_file?: EncryptedFile;
        thumbnail_info?: ThumbnailInfo;
        thumbnail_url?: string;
        w?: number;
    }

    Hierarchy (View Summary, Expand)

    Index

    Properties

    h?: number

    The intended display height of the image in pixels. This may differ from the intrinsic dimensions of the image file.

    mimetype?: string

    The mimetype of the image, e.g. image/jpeg.

    size?: number

    Size of the image in bytes.

    thumbnail_file?: EncryptedFile

    Information on the encrypted thumbnail file, as specified in End-to-end encryption. Only present if the thumbnail is encrypted.

    thumbnail_info?: ThumbnailInfo

    Metadata about the image referred to in thumbnail_url.

    thumbnail_url?: string

    The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.

    w?: number

    The intended display width of the image in pixels. This may differ from the intrinsic dimensions of the image file.

    MMNEPVFCICPMFPCPTTAAATR