Skip to main content

Hi y'all,

I don't get it: I have a raster file with 3 bands: RED8, GREEN8, BLUE8, ALPHA8. The alpha band is either 0 or 255. There is no gradient. I need to hava a RGB24 raster with NoData, where Alpha is/was 0. The RasterInterpretationCoercer with "Apply the alpha band" will return these areas white. 🤷🏼‍♀️

I already tried other solutions, but couldn't get what I wand.

Can anybody help?

Hi @mariaka​,

Please add a RasterBandNoDataSetter transformer before the RasterInterpretationCoercer, with Nodata set to 0 and Replace Cell Values set to No. This will set the Nodata values on the image bands, guiding the RasterInterpretationCoercer on the correct values to set on the transparent areas.

The resulting image will have the transparent areas set to 0,0,0, but they will appear the same color as the background in viewers that respect Nodata.


Reply