Skip to content

User JSON ImageIndicator

roosit edited this page Oct 16, 2026 · 2 revisions

Image JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the image indicator for manual editing of .vttp.

Full Template

{
  "name": "com.velitask.plagin.official.image",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "imageSource": {},
      "adaptive": {"value": false},
      "fit": {"value": 0},
      "border": {
        "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255},
        "thickness": {},
        "style": {"value": 0},
        "dashPattern": {"value": ""},
        "cornerRadius": {}
      }
    }
  }
}

Settings

imageSource

Selects the image for the layer. It is left empty in the template: the source is selected in the project after the template is applied.

{
  "imageSource": {}
}
Field Values What it does
sourceId.value number, 0 means not selected Number of the source (image) in the project. The field is not written in the template.

adaptive

Turns on automatic picking of the image: the one whose time span is current is shown. If there is no suitable one, nothing is shown.

{
  "adaptive": {"value": false}
}
Field Values What it does
value false, true false uses the selected source; true picks the source automatically by the current moment of the project.

fit

Selects how the image fits into the layer.

{
  "fit": {"value": 0}
}
Field Values What it does
value 0, 1, 2, 3 Number of the scaling option.
value Option in the UI What happens
0 Fill (crop) The image covers the whole layer, the excess at the edges is cropped.
1 Fit (letterbox) The whole image is visible, empty margins are possible.
2 Stretch Stretched over the whole layer, the aspect ratio is not kept.
3 Center Original size in the center, the excess is cropped.

Any other number is read as 0.

border

A border around the image: color, thickness, and corner rounding. It consists of five nested fields.

{
  "border": {
    "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255},
    "thickness": {},
    "style": {"value": 0},
    "dashPattern": {"value": ""},
    "cornerRadius": {}
  }
}
Field Values What it does
lineColor object r, g, b, a Border color.
thickness object value Border thickness.
style object value Line style (does not affect this indicator).
dashPattern object value Dash pattern (does not affect this indicator).
cornerRadius object value Corner radius.

lineColor

Color and transparency of the border.

{
  "lineColor": {"r": 255, "g": 255, "b": 255, "a": 255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

thickness

Border thickness in pixels.

{
  "thickness": {}
}
Field Values What it does
value 0..50 Border thickness; 0 means no border.

An empty object {} means the default value, 1. To set your own, write, for example, {"value": 3}.

style

Line style of the border. For this indicator the value is saved, but the line is always drawn solid.

{
  "style": {"value": 0}
}
Field Values What it does
value 0..7 Number of the line style.
value Option in the UI
0 Solid
1 Dash
2 Dot
3 Dash-dot
4 Dash-dot-dot
5 Long dash
6 Short dash
7 Custom

dashPattern

A custom dash pattern for the "Custom" style. For this indicator the value is saved but does not affect how the border looks.

{
  "dashPattern": {"value": ""}
}
Field Values What it does
value string, for example "12,6" Alternating dash and gap lengths; an empty string means a solid line.

cornerRadius

Rounding of the corners of the image and the border.

{
  "cornerRadius": {}
}
Field Values What it does
value 0..500 Corner radius; 0 means square corners.

An empty object {} means the default value, 0. To set your own, write, for example, {"value": 30}.

A border with thickness 0 is not drawn, but the corner rounding still applies.

Clone this wiki locally