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