[GRASS-user] r.colors generates different colors than QGIS plugin when same rules used?

Glynn Clements glynn at gclements.plus.com
Tue Sep 1 10:34:05 EDT 2009


Tim Holland wrote:

> I am trying to generate PNG files of a few different maps using r.colors,
> d.rast, and the PNG driver.  
> 
> The images I get from this process end up being colored slightly differently
> than when the equivalent images are generated in QGIS.  It is far more
> convenient to use the PNG driver right in GRASS (because I can set a script
> running and print out many images at once), but I prefer the color results I
> get with QGIS.  

Does it help if you do:

	export GRASS_TRUECOLOR=TRUE

before starting the PNG driver?

The PNG driver defaults to generating 256-colour images, using a fixed
6x6x6 colour-cube.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list