Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Brent Fraser
Another alternative is GINA's (http://www.gina.alaska.edu/projects/gina-tools/) gdal_contrast_stretch: Usage: gdal_contrast_stretch.exe { { -linear-stretch } | { -percentile-range } | { -histeq } } [ -ndv ] Input must be either 8-bit or 16-bit. Output is 8-bit. I think the

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Even Rouault
Selon jr.morre...@enoreth.net: > On Tue, 24 Apr 2012 09:38:44 +0200, Even Rouault wrote: > >> > >> thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's > >> gdal > >> and tamas' nightly build but the output results are incorrect > >> > >> Here is a sample file (93Mo) : > >> http://dl

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread jr . morreale
On Tue, 24 Apr 2012 09:38:44 +0200, Even Rouault wrote: thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's gdal and tamas' nightly build but the output results are incorrect Here is a sample file (93Mo) : http://dl.free.fr/iFT4hH3Yj I'll try to rebuild gdal on my linux box wi

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Even Rouault
> > thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's gdal > and tamas' nightly build but the output results are incorrect > > Here is a sample file (93Mo) : > http://dl.free.fr/iFT4hH3Yj > > I'll try to rebuild gdal on my linux box with the internal libs I haven't looked at your

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-23 Thread jr . morreale
On Mon, 23 Apr 2012 16:54:10 +0200, Even Rouault wrote: Selon jr.morre...@enoreth.net: Hi, I've a few thousand aerial uncompressed tiff photography that I would like to convert to tiff with jpeg compression, unfortunatly I can't figure the right options to set to overcome the following error

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-23 Thread Even Rouault
Selon jr.morre...@enoreth.net: > Hi, > > I've a few thousand aerial uncompressed tiff photography that I would > like to convert to tiff with jpeg compression, unfortunatly I can't > figure the right options to set to overcome the following error : > > gdal_translate -of Gtiff -co "COMPRESS=JPEG"

[gdal-dev] how to convert UInt16 Tiff

2012-04-23 Thread jr . morreale
Hi, I've a few thousand aerial uncompressed tiff photography that I would like to convert to tiff with jpeg compression, unfortunatly I can't figure the right options to set to overcome the following error : gdal_translate -of Gtiff -co "COMPRESS=JPEG" "D:\uncompressed_original.tif" "D:\tiff