[gdal-dev] Applying colour/contrast corrections to geotiffs

2013-03-11 Thread Paul Norman
I am generating a geotiff from a WMS source. I can do so from either PNG requests or JPEG requests. The PNG requests have better contrast but are 4x-5x as slow. I would like to compare the PNG and JPEG request results for a representative area and develop a contrast correction which I can apply

Re: [gdal-dev] Applying colour/contrast corrections to geotiffs

2013-03-11 Thread Even Rouault
Le lundi 11 mars 2013 18:55:55, Paul Norman a écrit : I am generating a geotiff from a WMS source. I can do so from either PNG requests or JPEG requests. The PNG requests have better contrast but are 4x-5x as slow. I would like to compare the PNG and JPEG request results for a

Re: [gdal-dev] Applying colour/contrast corrections to geotiffs

2013-03-11 Thread Paul Norman
From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Monday, March 11, 2013 12:13 PM Subject: Re: [gdal-dev] Applying colour/contrast corrections to geotiffs Le lundi 11 mars 2013 18:55:55, Paul Norman a écrit : I doubt that any correction/transformation can recover the lost

Re: [gdal-dev] Applying colour/contrast corrections to geotiffs

2013-03-11 Thread Even Rouault
Is there a way to verify if it is using this optimization? $ gdal_translate byte.jpg byte.tif -co compress=jpeg --debug GTiff -q GTiff: Using special copy mode from a JPEG dataset GTiff: Setting JPEGCOLORMODE_RGB I'm not actually feeding it a JPEG in the command line at any point, but the WMS

Re: [gdal-dev] Applying colour/contrast corrections to geotiffs

2013-03-11 Thread Paul Norman
From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Monday, March 11, 2013 1:55 PM Subject: Re: [gdal-dev] Applying colour/contrast corrections to geotiffs If you run nearblack to go from one JPEG in TIFF to another JPEG in TIFF, does it use this optimization for the RGB bands