[gdal-dev] gdal_translate produces tif with different colors as original

Marius Jigmond mariusjigmond at hotmail.com
Fri Nov 8 18:43:08 PST 2013


I noticed you're using ArcMap for visualizing the results. Did you check what histogram/gamma stretch gets applied by default when you load the layer? I run into this issue often as results from GDAL operations appear much worse when loaded into ArcMap compared to originals. When I turn off stretching, both histogram/gamma, results are nearly identical to original.
-marius

> To: gdal-dev at lists.osgeo.org
> From: andre+joost at nurfuerspam.de
> Date: Thu, 7 Nov 2013 16:54:32 +0100
> Subject: Re: [gdal-dev] gdal_translate produces tif with different colors as	original
> 
> Am 06.11.2013 21:32, schrieb Jukka Rahkonen:
> 
> > You're advised to preprocess your rasters with other
> > tools, such as pct2rgb.py or gdal_translate -expand RGB to operate
> > gdalbuildvrt on RGB rasters instead."
> >
> 
> I proposed that, but have a look at the color palette of the VRT:
> 
> <http://gis.stackexchange.com/questions/76662/gdal-translate-produces-tif-with-different-colors-as-original>
> 
> Is it a fault of the source or the driver?
> 
> Greetings,
> André Joost
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131108/337602da/attachment.html>


More information about the gdal-dev mailing list