img_utils
autogen.agentchat.contrib.img_utils.get_pil_image
get_pil_image
Loads an image from a file and returns a PIL Image object.
Parameters:
image_file (str, or Image): The filename, URL, URI, or base64 string of the image file.
Returns:
Image.Image: The PIL Image object.
Name | Description |
---|---|
image_file | Type: str | ForwardRef(‘Image.Image’) |
Type | Description |
---|---|
PIL.Image.Image | Image.Image: The PIL Image object. |