The image Element

The image element describes an image.

{
    "type": "image",
    "tags": array<string>,
    "version": string,
    "label": ?string,
    "alt": ?string,
    "title": ?string,
    "src": string,
    "resizable": boolean
}

The label Property

since v1.0.0

The label property represents a caption for the image.

The alt Property

since v1.0.0

The alt property specifies an alternate text for the image which can be shown if the image cannot be loaded.

The title Property

since v1.0.0

The title property contains the title for the image.

The src Property

since v1.0.0

The src property contains the base64 encoded data of the image.

The resizable Property

since v1.0.0

Determines whether or not the image can be resized by the consumer. The default value is false.

If set to true the image has to be resizable by the consumer, however the method of doing this (buttons, gestures, ...) is not specified.

Possible values for tags

  • QR_CODE

  • CAPTCHA

Example

{
    "type":"image",
    "version":"1.0.0",
    "tags": [],
    "label":"",
    "alt":"",
    "title":"",
    "src":"data:image/png;base64,...",
    "resizable":true
}

Changelog


1.0.0 - 01.02.2019

  • initial version

results matching ""

    No results matching ""