Re: [GRASS-user] Exporting a map into JPEG or PNG- get black image

2013-11-06 Thread Vaclav Petras
Hi,

I'm using r.out.png in GRASS 7 in it works well at least for values 0-255.
It also exports NULLs as transparent pixels which is great.

If you still have an issues with r.out.gdal you may want to consider
providing some small sample of your data and/or report this as a bug.

Vaclav

On Wed, Nov 6, 2013 at 8:42 AM, Cesar Augusto Ramírez Franco <
caesar...@gmail.com> wrote:

> Use the PNG driver:
>
> export GRASS_TRUECOLOR=TRUE
> d.mon start=PNG
> d.rast {mapname}
> d.vect {mapname}
> d.mon stop=PNG
>
> Then you'll have a map.png file on the current directory, and you can use
> imagemagic 'convert' utility to get a *.jpg
>
> convert map.png {mapname}.jpg
>
> Regards
>
>
> 2013/11/5 António Rocha 
>
>> Dear all,
>> I have a Raster layer with colors and values 1 till 8 and null values. I
>> want to export as JPEG using r.out.gdal but I get a totally black image.
>> Any tips on how to solve this?
>> Regards,
>> Antonio
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
>
> --
> *César Augusto Ramírez Franco*
>  Laboratorio de Sistemas Complejos Naturales
> Escuela de Geociencias
> Facultad de Ciencias
> Universidad Nacional de Colombia - Sede Medellín
> Teléfono: (57-4) 430 9369 - 301 389 5607
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Exporting a map into JPEG or PNG- get black image

2013-11-06 Thread Cesar Augusto Ramírez Franco
Use the PNG driver:

export GRASS_TRUECOLOR=TRUE
d.mon start=PNG
d.rast {mapname}
d.vect {mapname}
d.mon stop=PNG

Then you'll have a map.png file on the current directory, and you can use
imagemagic 'convert' utility to get a *.jpg

convert map.png {mapname}.jpg

Regards


2013/11/5 António Rocha 

> Dear all,
> I have a Raster layer with colors and values 1 till 8 and null values. I
> want to export as JPEG using r.out.gdal but I get a totally black image.
> Any tips on how to solve this?
> Regards,
> Antonio
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>



-- 
*César Augusto Ramírez Franco*
Laboratorio de Sistemas Complejos Naturales
Escuela de Geociencias
Facultad de Ciencias
Universidad Nacional de Colombia - Sede Medellín
Teléfono: (57-4) 430 9369 - 301 389 5607
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] Exporting a map into JPEG or PNG- get black image

2013-11-05 Thread António Rocha

Dear all,
I have a Raster layer with colors and values 1 till 8 and null values. I 
want to export as JPEG using r.out.gdal but I get a totally black image. 
Any tips on how to solve this?

Regards,
Antonio
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user