<div>Gents:</div><div>I've run it with "all" bands and get a nice, huge PNG (grayscale and it's not doing the resize), that I can open and view in Opticks but nothing else.</div><div> </div><div>On windoze, you can drag an image into Firefox, and it will display it. Firefox says it cannot display the image "because it contains errors".</div><div> </div><div> </div><div> </div><div>08.07.2017, 23:09, "Howard Butler" <howard@hobu.co>:</div><blockquote type="cite"><p>Vladimir,<br /><br />You need to be specific about what you mean by "cannot view the PNG with Firefox...".<br /><br />The output of writers.gdal with the configuration you've provided is a 2-band PNG. That's probably not what you are expecting. Presumably you will want a colorized PNG or something? In that case, write out only the idw band as a PNG, and then use a GDAL VRT plus a color interpretation to convert that to a PNG that would be viewable in a way you'd expect in Firefox.<br /><br />Hope this helps,<br /><br />Howard<br /> </p><blockquote> On Jul 7, 2017, at 9:17 PM, Adam Steer <<a href="mailto:Adam.Steer@anu.edu.au">Adam.Steer@anu.edu.au</a>> wrote:<br /><br /> HI Vladimir - can you check whether a PNG with just one ‘band’ (ie ‘max’ OR ‘idw’ but not both) works?<br /><br /> That’s all I can think of… I actually need to test this as well :) Next week…<br /><br /> Cheers<br /><br /> Adam<br /><br /> <blockquote> On 8 Jul 2017, at 3:18 am, Vladimir Sandoval <<a href="mailto:vladimir.sandoval@yandex.com">vladimir.sandoval@yandex.com</a>> wrote:<br /><br /> Trying to make a PNG from a .laz file to display in Firefox.<br /><br /> {<br />  "pipeline":[<br />    "somefile.laz",<br />    {<br />     "type":"writers.gdal",<br />      "resolution": 1,<br />      "output_type":"idw",<br />      "output_type":"max",<br />       "gdalopts":"of=PNG,outsize=128 128",<br />       "gdalopts":"co=WRITE_METADATA_AS_TEXT=NO",<br />      "filename":"outputfile.png"<br />    }<br />  ]<br /> }<br /><br /> The pipeline runs and produces a PNG. I cannot view the PNG with Firefox, MS Paint, or Windows Photo Viewer, HOWEVER, I can open it and view it in Opticks (<a href="https://sourceforge.net/projects/opticks/">https://sourceforge.net/projects/opticks/</a>).<br /><br /> Opticks shows a single band grey scale image, probably representative of the original .laz.<br /><br /> Anything I'm doing wrong here producing the "corrupted" PNG?<br /> _______________________________________________<br /> pdal mailing list<br /> <a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br /> <a href="https://lists.osgeo.org/mailman/listinfo/pdal">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote><br /> _______________________________________________<br /> pdal mailing list<br /> <a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br /> <a href="https://lists.osgeo.org/mailman/listinfo/pdal">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote><p> </p></blockquote>