export GRASS_RENDER_IMMEDIATE=png
map.png
.
If you set GRASS_RENDER_FILE to a filename which ends in ".ppm", a PPM
file will be created (with alpha channel stored in a PGM image, if applicable).
If you set GRASS_RENDER_FILE to a filename which ends in ".bmp", a 32-bpp
BMP file will be created (these are not readable by some older viewers).
TRUE
, the PNG driver will initialize the image from
the contents of GRASS_RENDER_FILE.
TRUE
, the PNG driver
will map GRASS_RENDER_FILE as its framebuffer, rather than using
memory. This only works with BMP files.
export GRASS_RENDER_IMMEDIATE=png export GRASS_RENDER_TRUECOLOR=TRUE g.region raster=elevation d.rast elevation d.vect roadsmajor color=red
map.png
in your current directory.
The resolution of the output images is defined by current region
extents. Use g.region -p
to get the number of rows and cols
and use the environment variables to set the image size. If you would
like a larger image, multiply both rows and cols by the same whole
number to preserve the aspect ratio.
Further PNG file processing (e.g. quantization to 1 bit for monochrome
images) can be done with pnmquant
of
the netpbm tools.
Available at: PNG DISPLAY DRIVER source code (history)
Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d
Main index | Topics index | Keywords index | Graphical index | Full index
© 2003-2024 GRASS Development Team, GRASS GIS 8.4.1dev Reference Manual