ImageAsset

  • The Image asset object contains fields for the image's MIME type, metadata at its original size, raw byte data, and file size in bytes.

  • The mime_type field specifies the MIME type of the image asset using the MimeType enum.

  • The full_size field provides metadata about the image's dimensions at its original size through the ImageDimension object.

  • The data field holds the raw byte data of the image and is only mutable.

  • The file_size field indicates the size of the image asset in bytes as an integer.

An Image asset.

Proto definition

Fields

data

bytes

The raw bytes data of an image. This field is mutate only.

file_size

int64

File size of the image asset in bytes.

full_size

ImageDimension

Metadata for this image at its original size.

mime_type

MimeType

MIME type of the image asset.