image

Creates or loads an image object.

Target type

Signature

1image(filePath::string, -info= ?)

Creates or loads an image object.

image constructs or identifies a LaiRu value type. image works with structured document or media data. Keep parsing, transformation, and output steps separate enough that each step can be checked on its own.

Parameters

filePath
Required value of type string. Supply filePath positionally unless the signature shows a keyword form.
-info
Optional value. Supply -info by keyword, keeping the leading hyphen in the call.

Examples

Basic call

1image('/tmp/photo.jpg')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.