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
agents
beta
caches
callbacks
chat_history
chat_loaders
chat_sessions
document_loaders
documents
embeddings
example_selectors
exceptions
globals
graph_vectorstores
indexing
language_models
load
memory
messages
output_parsers
outputs
prompt_values
prompts
rate_limiters
retrievers
runnables
stores
structured_query
sys_info
tools
tracers
utils
vectorstores
utils
Get data URL from image URI.
image_path (str) – The path to the image.
The data URL of the image.
str