ImageFileFormat
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eSelects an image file format for returning pixel data.\u003c/p\u003e\n"],["\u003cp\u003eOptions include JPEG, PNG, NPY, GeoTIFF, TFRecord, and zipped formats.\u003c/p\u003e\n"],["\u003cp\u003eJPEG and PNG are for display and support 8-bit RGB data.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAUTO_JPEG_PNG\u003c/code\u003e dynamically chooses between JPEG and PNG based on transparency.\u003c/p\u003e\n"],["\u003cp\u003eSome formats like zipped GeoTIFFs are specific to thumbnail creation.\u003c/p\u003e\n"]]],["The system defines image file formats for returning pixel data. Available formats include `JPEG`, `PNG`, `AUTO_JPEG_PNG` (automatic selection), `NPY` (NumPy), `GEO_TIFF`, `TF_RECORD_IMAGE`, `ZIPPED_GEO_TIFF`, and `ZIPPED_GEO_TIFF_PER_BAND`. JPEG, PNG, and automatic formats are for display, supporting 8-bit RGB data. `ZIPPED_GEO_TIFF` and `ZIPPED_GEO_TIFF_PER_BAND` are for thumbnails. TF_RECORD_IMAGE is for image exports. `IMAGE_FILE_FORMAT_UNSPECIFIED` indicates an undefined type.\n"],null,["# ImageFileFormat\n\nSelects an image file format in which to return a block of pixel data.\n\n| Enums ||\n|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `IMAGE_FILE_FORMAT_UNSPECIFIED` | Unspecified. |\n| `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. |\n| `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. |\n| `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. |\n| `NPY` | NumPy .npy format. |\n| `GEO_TIFF` | GeoTIFF format. |\n| `TF_RECORD_IMAGE` | TFRecord format. Only supported for image exports. |\n| `ZIPPED_GEO_TIFF` | A format which returns a GeoTIFF file wrapped in a zip file. This is only available when using CreateThumbnail. |\n| `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. |"]]