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

Cesar Augusto Ramírez Franco caesarivs at gmail.com
Wed Nov 6 05:42:42 PST 2013

Use the PNG driver:

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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131106/a46d1757/attachment.html>

More information about the grass-user mailing list