encode_image#
- langchain_core.utils.image.encode_image(image_path: str) str[source]#
Get base64 string from image URI.
- Parameters:
image_path (str) – The path to the image.
- Returns:
The base64 string of the image.
- Return type:
str
Site Navigation
Section Navigation
agentsbetacachescallbackschat_historychat_loaderschat_sessionsdocument_loadersdocumentsembeddingsexample_selectorsexceptionsglobalsgraph_vectorstoresindexinglanguage_modelsloadmemorymessagesoutput_parsersoutputsprompt_valuespromptsrate_limitersretrieversrunnablesstoresstructured_querysys_infotoolstracersutilsvectorstoresutilsGet base64 string from image URI.
image_path (str) – The path to the image.
The base64 string of the image.
str