Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ImageFileFormat
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]