Skip to main content

I have a large NITF image (grey scale, with palette). In the course of a number of transofmrations (reprojection, etc.) it gets converted to an RGBA (the palette is resolved).

 

 

Now I want to save it as a PNG. I do not need all the RGB bands. I see that PNGRASTER has a grey scale, and also a pallette option.

 

 

Is there a transform to shrink the RGBA to a Grey Scale plus Alpha PNG image (and pallette might also be nice).

 

 

The goal is to get the disk size smaller. Just compressing at level 6 is resulting in a 400% explosion from the original NITF.

 

 

 
Hi - Take a look at the RasterInterpretationCoercer and the RasterPaletteInterpretationCoercer, they might help you out.

Reply