Image
A picture that fills its tile. Point it at a URL (reloaded every few seconds if you want, e.g. a camera snapshot) or send the image from the flow: a Buffer from http request or file in, a base64 string or a data:image URI. Without a label it goes edge to edge.
Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Optional title; without it the image fills the whole tile | |
icon |
string | Lucide icon before the title | |
src (node config) |
string | Image URL: https://…, a path served by Node-RED (/images/plan.png) or an image from the media library |
|
fit |
contain · cover |
contain |
Show the whole image, or fill the tile (cropping) |
refresh |
number | 0 |
Reload a URL every N seconds; the old image stays until the new one has loaded |
alt |
string | Description for screen readers |
msg.payload = 'http://10.0.0.20/snapshot.jpg'; // a URLmsg.payload = buffer; // a Buffer: PNG, JPEG, GIF, WebP, BMP or SVGmsg.payload = base64String; // the same, as base64msg.mimetype = 'image/x-icon'; // when the type can't be recognisedmsg.payload = null; // clearImages from the flow are kept (up to 5 MB) and shown to browsers that open the page later. Only http(s) and relative URLs are accepted: javascript: or other schemes are ignored with a warning.
Picking a picture
Section titled “Picking a picture”In the builder, the source is an image field: the text box takes any URL and the button next to it opens the media library, where images are uploaded once and picked from a grid. A picked image is stored as media/<name>, relative to the dashboard path, so the same value works on any page and after a rename of the dashboard.