Image

To add an image to the task, use the {{img src=<imageURL>}} component. For example:

{{img src=url width="100px" height="75px"}}

The {{img}} is used to add images only using absolute links. You can also connect an external service, such as Yandex.Disk.

Full list of parameters

Parameter

Description

Required

Default value

src

Image URL. Supported values:

  • URL from the input data of the task. For example, from the field with url ID: src=url.

  • Direct link. It is recommended to use HTTPS protocol. For example, src="https://mywebsite.ru/img1.png".

yes

no

width

Width of the image. Set in the following units:

  • Pixels. For example, width="100px".

  • Percentage of the size of the parent element. For example, width="100%".

You can also use a formula for setting the width. For example, width="calc(100%-30px)".

no

"300px"

height

Height of the image. Set in the following units:

  • Pixels. For example, height="100px".

  • Percentage of the size of the parent element. For example, height="100%".

You can also use a formula for setting the width. For example, height="calc(100%-30px)".

no

"300px"

real-size

Image scale. Acceptable values:

  • real-size=false — Stretch the image to the size of the parent element.

  • real-size=true — Use the original image size (if it isn't larger than the size of the parent element).

no

false

class

CSS class for the image.

no

".img"