Class Image (1.54.0)

Image()

The image that can be sent to a generative model.

Properties

data

Returns the image data.

Methods

from_bytes

from_bytes(data: bytes) -> vertexai.generative_models._generative_models.Image

Loads image from image bytes.

Parameter
Name Description
data bytes

Image bytes.

load_from_file

load_from_file(
    location: str,
) -> vertexai.generative_models._generative_models.Image

Loads image from file.

Parameter
Name Description
location str

Local path from where to load the image.