Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.data.getThumbId
Stay organized with collections
Save and categorize content based on your preferences.
Get a Thumbnail Id for a given asset.
Returns the thumb ID and optional token, or null if a callback is specified.
Usage | Returns | ee.data.getThumbId(params, callback) | ThumbnailId |
Argument | Type | Details | params | ThumbnailOptions | An object containing thumbnail options with the following possible values:
image (ee.Image) The image to make a thumbnail. |
bands (array of strings) An array of band names. |
format (string) The file format ("png", "jpg", "geotiff"). |
name (string): The base name. |
Use ee.Image.getThumbURL for region, dimensions, and visualization options support. |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-20 UTC.
[null,null,["Last updated 2024-02-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eee.data.getThumbId\u003c/code\u003e function retrieves the thumbnail ID and optional token for a given Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eIt requires thumbnail options as parameters, including the image, band names, file format, and base name.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eee.Image.getThumbURL\u003c/code\u003e for specifying region, dimensions, and visualization parameters when generating thumbnail URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the ThumbnailId object or null if a callback function is provided.\u003c/p\u003e\n"]]],[],null,["# ee.data.getThumbId\n\n\u003cbr /\u003e\n\nGet a Thumbnail Id for a given asset.\n\n\u003cbr /\u003e\n\nReturns the thumb ID and optional token, or null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------------|-------------|\n| `ee.data.getThumbId(params, `*callback*`)` | ThumbnailId |\n\n| Argument | Type | Details |\n|------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | ThumbnailOptions | An object containing thumbnail options with the following possible values: |----------------------------------------------------------------| | ` image ` (ee.Image) The image to make a thumbnail. | | ` bands ` (array of strings) An array of band names. | | ` format ` (string) The file format (\"png\", \"jpg\", \"geotiff\"). | | ` name ` (string): The base name. | Use ee.Image.getThumbURL for region, dimensions, and visualization options support. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]