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

Vaclav Petras wenzeslaus at gmail.com
Wed Nov 6 10:01:20 PST 2013


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 <
caesarivs at 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 <antonio.rocha at deimos.com.pt>
>
>> 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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131106/68175b4b/attachment-0001.html>


More information about the grass-user mailing list