[gdal-dev] gdal_translate -scale with PNG
Stephen Mather
mather.stephen at gmail.com
Thu Jul 28 09:36:41 EDT 2011
I thought I'd tried that and it failed, but it looks to be just a problem of
stale statistics. Thanks Marius.
Steve
On Wed, Jul 27, 2011 at 10:16 PM, Marius Jigmond
<mariusjigmond at hotmail.com>wrote:
> On 07/27/2011 04:16 PM, Stephen Mather wrote:
>
> 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
>
>
> Try gdal_translate -of PNG -ot UInt16 -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
>
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -marius
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110728/662ad3ed/attachment.html
More information about the gdal-dev
mailing list