Question

PNG Reader Problems

  • 25 September 2019
  • 2 replies
  • 9 views

Hi,

i need some help to read and write PNG File with GRAY8 band.

if i use the normal PNG Reader then i got a fully black image.

i experiment a little bit with the raster and rasterband transformers, so that i got a nearly good solution, but not the same as i open the file with paint.

in attachment there are 2 example files and my current experiment bench.

can someone help?


2 replies

Userlevel 1
Badge +21

Take a look at the RasterBandInterpretationCoercer, the destination Interpretation Type depends on what you are doing with the data, scale by data values

 

it could be so simple :-)

thankyou

Reply