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
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 base64 string from image URI.
image_path (str) – The path to the image.
The base64 string of the image.
str