Solved

PNG Palette

  • 14 January 2013
  • 1 reply
  • 1 view

Badge

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.

 

 

 
icon

Best answer by davideagle 14 January 2013, 17:02

View original

1 reply

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

Reply