Skip to main content

Hi,

Do you have any suggestion to convert a raster 4 band 16bits to a raster 4 band 8bits.

I use RasterInterpretationCoercer and i select RGBA32. but the result is not good.

 

Thank for your help

What setting did you use in the RasterInterpretationCoercer? You'll most likely want to use Scale by data type or Scale by data values, depending on the range in the original data.


@jdh My Setup is: Destination Interpretation Type is RGBA32. The convert from color to color and Convert from Numeric to color is "Scale by data values"

Convert from Foat to Integer is "Round". The only problem with this transformer is the RGB to RGBA. I need RGBA to RGBA. Thanks


@jdh My Setup is: Destination Interpretation Type is RGBA32. The convert from color to color and Convert from Numeric to color is "Scale by data values"

Convert from Foat to Integer is "Round". The only problem with this transformer is the RGB to RGBA. I need RGBA to RGBA. Thanks

If you are going from RGBA64 to RGBA32 the only parameter that has an effect is Convert from Color to Color, all other settings are not applicable.

When you say the result is not good, what do you mean?


@jdh My Setup is: Destination Interpretation Type is RGBA32. The convert from color to color and Convert from Numeric to color is "Scale by data values"

Convert from Foat to Integer is "Round". The only problem with this transformer is the RGB to RGBA. I need RGBA to RGBA. Thanks

Because when i look in Photoshop i have 3 band and no alpha band. My original raster in photoshop have 3 band and 1 alpha band. This is why i think the result is not good. But in inspector i saw 4 band in my destination raster RGBA32 not in photoshop. It's very bizzard.


Because when i look in Photoshop i have 3 band and no alpha band. My original raster in photoshop have 3 band and 1 alpha band. This is why i think the result is not good. But in inspector i saw 4 band in my destination raster RGBA32 not in photoshop. It's very bizzard.

Photoshop will often treat the alpha band as a transparency mask rather than a separate channel with geotiffs.

 

There's a way to convert it back in photoshop, Layer Mask from transparency, I think.

What we do is change the interpretation of the 4th band from Alpha8 to UInt8 in FME, and then photoshop behaves correctly.


Reply