Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt

Use this file to discover all available pages before exploring further.

pil_to_data_uri

pil_to_data_uri(image: Image) -> str
Converts a PIL Image object to a data URI.
Parameters:
image (Image.Image): The PIL Image object.
Returns:
str: The data URI string.
Parameters:
NameDescription
imageType: Image.Image
Returns:
TypeDescription
strstr: The data URI string.