parse_image

parse_image(image_url: str) -> tuple[bytes, str]

Try to get the raw data from an image url.
Ref: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ImageSource.html returns a tuple of (Image Data, Content Type)

Parameters:
NameDescription
image_urlType: str