img_utils
autogen.agentchat.contrib.img_utils.pil_to_data_uri
pil_to_data_uri
Converts a PIL Image object to a data URI.
Parameters:
image (Image.Image): The PIL Image object.
Returns:
str: The data URI string.
Name | Description |
---|---|
image | Type: Image.Image |
Type | Description |
---|---|
str | str: The data URI string. |