Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can the white background of the r.out.png of GRASS be changed to transparent?

share|improve this question
up vote 2 down vote accepted

Have you tried '-t' flag? Its there in 6.4.1.

share|improve this answer
I'm using grass 6.4.0. Is there a way to use transparency for 6.4.0? If I will upgrade to 6.4.1, I'm not sure if my current program will work on it. I don't want to risk the project that I am currently doing. – teamAngat Aug 4 '11 at 14:15
Since the command is a separate tool, I'm assuming you could simply get the r.out.png.exe (assuming you're on Windows) from 6.4.1 and copy it to the bin directory (make a copy of the old EXE just in case). I'm not really sure if the GUI will show the -t option, but if not, then you can use it by entering the command manually. Note - I have NOT tested this, but I don't see why it wouldn't work. – Sasa Ivetic Aug 4 '11 at 14:23
Ah. I understand your idea. Yes I'm using Windows. Where can I get the r.out.png.exe for 6.4.1 without downloading the installer WinGRASS-6.4.1-1-Setup.exe? – teamAngat Aug 4 '11 at 14:45
I can't see it on their site, so I zipped up the one from my directory: – Sasa Ivetic Aug 4 '11 at 15:20
I tried replacing the old r.out.png files in the bin, it does not work. The r.out.png script runs on GRASS but it does not generate any image file – teamAngat Aug 4 '11 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.