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