[gdal-dev] gdal_translate -scale with PNG

Stephen Mather mather.stephen at gmail.com
Wed Jul 27 17:16:59 EDT 2011


Hi All,
     I'm using gdal_translate (version 1.6.3 on Ubuntu) with a scale factor
to stretch float values to 16-bit integer values.  It works fine with tif
output, but with PNG it stretches the values to 8-bit:

gdal_translate -of PNG -scale 0 1550 0 65535 N2140615.txt N2140615.png

Is this a known issue and/or has it been fixed with more recent versions?  I
know I had trouble with this with an MS4W release as well.

Thanks,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110727/18d47e32/attachment.html


More information about the gdal-dev mailing list