render_raster_layer_png
Convert attached raster layers or GeoTIFFs into PNG previews, auto-stretching single-band rasters and using the first three bands for multiband images.
Instructions
Decode an attached raster layer (or a GeoTIFF on disk) into a PNG preview. Single-band rasters are auto-stretched to grayscale; multi-band rasters use the first three bands. Returns base64 PNG bytes; pass output_path to also write to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | No | ||
| max_width | No | ||
| max_height | No | ||
| output_path | No |