Transparency not being rendered in tiles and preview #1135
-
Hi there! Thanks so much for this library. I am seeing some peculiar behaviour with handling of the alpha band in a tiff - where the tiler seems to handle transparency correctly for some pixels, but not for others. Here is the
And here is the preview generated by titiler: You can see a whole load of black areas, which are transparent when viewed in GQIS. After poking about I found that the areas that are being made transparent have value (0, 0, 0, 0), and those that are black have some small alpha value (e.g., 0, 0, 0, 1). It seem that this small difference alters the output when the expected behaviour is for both (0, 0, 0, 0) and (0, 0, 0, 1) is essentially the same - both should be pretty much transparent. That is, an alpha value of 1 is resulting in a black pixel, instead of a transparent one. I found #643 which seems to be a similar issue, but I am not sure that nodata values are the problem here. Is there an issue with the COG / what can I do to fix it? Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
rio-tiler doesn't not support partial alpha values. Alpha band should either be 0 or 255. |
Beta Was this translation helpful? Give feedback.
rio-tiler doesn't not support partial alpha values. Alpha band should either be 0 or 255.