img | R Documentation |
This function reads an image file from disk, encodes it in base64,
and returns a tidyllm_image
object that can be used in multimodal
embedding requests.
img(.path)
.path |
The path to the image file on disk. |
An tidyllm_image
, containing:
imagepath
: The original file path
imagename
: The basename of the image
imagebase64
: a "data:image/...;base64,..." string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.