Skip to main content

Image

system:image

Shows an image from the resource pack.

Nodes are written into the body or children of a resource pack card template. Besides their own fields, all nodes share id, style, when, unless and repeat; see Common node fields.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—system:image
sourceStringyes—Input collection, resource path or context parameter; see this page for how it is used.
altStringno""Alternative text used when the image cannot be displayed.
widthIntegerno32Width, in pixels.
heightIntegerno32Height, in pixels.

JSON example​

{
"type": "system:image",
"source": "example:textures/gui/logo.png",
"width": 32,
"height": 32
}

Placed in the body of a card template or the children of a container. Placeholders come from server snapshots and client build events; changing only the JSON does not produce the missing data or business handlers.

Java entry point​

com.iafenvoy.system.screen.card.node.media.ImageNode. This page is based on the Codec in the current 26.1.2 source.