Renders an HTML <img> tag from image parameters, resolving local vs remote sources.
Registered as a process-text handler. Called with up to 8 positional parameters:
| Parameter | Description |
|---|---|
Param1 |
Image source: data for inline data URIs, or a filename to resolve locally/remotely |
Param2 |
For data images: MIME type / data string. For local images: optional width. For fallback: URL suffix |
Param3 |
Optional width override (used for data and fallback modes) |
Param1 == "data" — renders an inline data URI: src='data:{Param2}'$hostdir$/local/{Param1}) — renders using $hosturl$/image/{Param1}src='{Param1}:{Param2}' (treats Param1+Param2 as a full URL scheme)In all cases, if a width is provided it is set via width='{value}', otherwise class='img-fluid' is applied.
ObjProcessText(ObjData.ObjData) — inherits database and config access from ObjData.
cythonize -3 -a -i ObjTextImage.py
Compiling /home/axion/projects/axion/factory.text/ObjTextImage.py because it changed..[1/1] Cythonizing /home/axion/projects/axion/factory.text/ObjTextImage.py
Updated : 2025-10-02