geeViz.outputLib.thumbs¶
Generate Earth Engine thumbnails with automatic visualization handling.
geeViz.outputLib.thumbs provides functions that mirror the auto-visualization
logic in geeView and geeViz.outputLib.charts — detecting thematic vs. continuous
data, reading *_class_values / *_class_palette image properties, and
building appropriate viz params — so you can get publication-ready thumbnail
URLs and embeddable HTML <img> tags without manual configuration.
Supports ee.Image (PNG) and ee.ImageCollection (animated GIF or
filmstrip), with optional per-feature clipping for ee.FeatureCollection
geometries.
Animated GIFs¶
For ee.ImageCollection inputs, generate_gif() creates properly
mosaicked per-time-step frames, with optional date burn-in using
system:time_start metadata.
Example:
import geeViz.geeView as gv
from geeViz.outputLib import thumbs as tl
ee = gv.ee
lcms = ee.ImageCollection("USFS/GTAC/LCMS/v2024-10")
area = ee.Geometry.Point([-111.8, 40.7]).buffer(10000)
url = tl.get_thumb_url(lcms.select(["Land_Cover"]).first(), area)
html = tl.embed_thumb(url, title="LCMS Land Cover")
# Animated GIF with date labels
gif_html = tl.generate_gif(
lcms.select(["Land_Cover"]),
area,
burn_in_date=True,
date_format="YYYY",
)
Functions
|
Build visualization parameters automatically from image properties. |
|
Build visualization parameters for a continuous |
|
Download raw image bytes from an Earth Engine thumbnail URL. |
|
Generate an embeddable HTML |
|
Generate an HTML CSS-grid layout of multiple thumbnails. |
|
Generate a filmstrip grid image from an Earth Engine ImageCollection. |
|
Generate an animated GIF from an Earth Engine ImageCollection. |
|
Generate a combined map + chart output. |
|
Generate an animated GIF with map thumbnails and cumulative line charts. |
|
Generate a publication-ready thumbnail PNG for a report section. |
|
Get an animated GIF thumbnail URL for an |
|
Get a filmstrip thumbnail URL — all frames side-by-side in one PNG. |
|
Get a PNG thumbnail URL for an Earth Engine image. |
|
Get thumbnail URLs for an image clipped to each feature in a collection. |
|
Generate per-feature thumbnail URLs in parallel using a thread pool. |
|
Download a thumbnail and return it as a base64 data URI string. |