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