ImageFileFormat

  • The content describes how to select an image file format to return a block of pixel data.

  • Supported image file formats include JPEG, PNG, AUTO_JPEG_PNG, NPY, GEO_TIFF, TF_RECORD_IMAGE, ZIPPED_GEO_TIFF, and ZIPPED_GEO_TIFF_PER_BAND.

  • JPEG, PNG, and AUTO_JPEG_PNG are intended for display purposes and only support 8-bit RGB data or data converted to 8-bit RGB.

  • Some formats like ZIPPED_GEO_TIFF and ZIPPED_GEO_TIFF_PER_BAND are only available when using CreateThumbnail.

Selects an image file format in which to return a block of pixel data.

Enums
IMAGE_FILE_FORMAT_UNSPECIFIED Unspecified.
JPEG JPEG. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via visualization parameters.
PNG PNG. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via visualization parameters.
AUTO_JPEG_PNG Automatically select JPEG or PNG depending on whether or not there is any transparency. Intended for display purposes. Only supported for 8-bit RGB data, or data that is converted to 8-bit RGB via visualization parameters.
NPY NumPy .npy format.
GEO_TIFF GeoTIFF format.
TF_RECORD_IMAGE TFRecord format. Only supported for image exports.
ZIPPED_GEO_TIFF A format which returns a GeoTIFF file wrapped in a zip file. This is only available when using CreateThumbnail.
ZIPPED_GEO_TIFF_PER_BAND A format which returns a GeoTIFF file for each band, wrapped in a zip file. This is only available when using CreateThumbnail.