developmentseed / titiler

Build your own Raster dynamic map tile services
https://developmentseed.org/titiler/
MIT License
765 stars 157 forks source link

enable partial transparency for output image when using Colormap #689

Closed vincentsarago closed 1 year ago

vincentsarago commented 1 year ago

In the past (before rio-tiler 5.0, https://cogeotiff.github.io/rio-tiler/migrations/v5_migration/#per_dataset-per_band-mask) we allowed mask values between 0 and 255 (https://github.com/cogeotiff/rio-tiler/pull/580#discussion_r1130135193).

We removed this feature because we switched to numpy MaskedArray (either 0 or 255), which enabled per-band mask and much more.

If people needs to work with non-premultiplied alpha bands then please open a ticket in rio-tiler and we can discuss ways to go forward.

At the same time, it came twice in a week that people were asking for non-premultiplied alpha bands in colormap, and this is somehow maybe easier to fix