Re: [gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread Jesus via gdal-dev
jratike80 Sent: viernes, 22 de enero de 2021 12:15 To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] JPEG/PNG 12 bits GDAL python Hi, With my GDAL 3.1.4 from OSGeo4W converting a single band Float32 DEM file into JPEG compressed TIFF and into plain JPEG succeeded with these commands

Re: [gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread jratike80
Hi, With my GDAL 3.1.4 from OSGeo4W converting a single band Float32 DEM file into JPEG compressed TIFF and into plain JPEG succeeded with these commands: gdal_translate L2431.tif -co COMPRESS=JPEG -ot uint16 -co NBITS=12 out.tif gdal_translate L2431.tif -of JPEG -ot uint16 -co NBITS=12 out.jpg

[gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread Jesus via gdal-dev
Hello and thank you in advance, Im trying to generate png and jpeg 12 bits images from a GTiff single band file with no success. I know is there a way to generate 12 bits images in the GDAL command line as I have seen in some examples (“gdal_translate mandril_rgb.tif -co COMPRESS=JPEG -co PHOTO