Class Image (1.48.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
NameDescription
data bytes

Image bytes.

load_from_file

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

Loads image from file.

Parameter
NameDescription
location str

Local path from where to load the image.