Skip to main content
Solved

PNG Palette

  • January 14, 2013
  • 1 reply
  • 12 views

Forum|alt.badge.img

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.

 

 

 

Best answer by davideagle

Hi - Take a look at the RasterInterpretationCoercer and the RasterPaletteInterpretationCoercer, they might help you out.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

davideagle
Contributor
Forum|alt.badge.img+22
  • Contributor
  • Best Answer
  • January 14, 2013
Hi - Take a look at the RasterInterpretationCoercer and the RasterPaletteInterpretationCoercer, they might help you out.