Skip to content
Konjure / spatial intelligence

Image

← Builtin reference

An image resource request with display dimensions.

Signature

type Image {
  source: Str = "";
  width: Number = 1;
  height: Number = 1;
}

This schema declares desired resource data only. A host resolves source, owns I/O and permissions, and reports any loading failure; construction performs no I/O.

Fields

source: Str
Host-defined image locator; defaults to empty.
Default""
width: f64
Requested display width in scene units; defaults to 1.
Default1
height: f64
Requested display height in scene units; defaults to 1.
Default1

Examples

Describe an image

No file is read until a host chooses to resolve the source.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
poster.png

Rust definition

Interpreter RecordValue resource schema, not an image decoder or Rust SDK image handle.

See also