r.out.png(1)
π r.out.png β the GRASS GIS girlies' guide
ok so bestie, welcome to r.out.png, a lil member of the GRASS GIS User's Manual family. she's a raster-to-PNG baddie and she does NOT do georeferencing unless you ask nicely. let's get into it π
β¨ NAME β¨
r.out.png β Export a GRASS raster map as a non-georeferenced PNG image. periodt. πΌοΈ
π·οΈ KEYWORDS π·οΈ
raster, export, output, PNG
πΈ SYNOPSIS πΈ
r.out.png
r.out.png --help
r.out.png [-tw] input=name output=name [compression=integer]
[--overwrite] [--help] [--verbose] [--quiet] [--ui]
π Flags:
-tβ Make NULL cells transparent. yes queen, transparency. π«₯β¨-wβ Output world file. giving your PNG a lil georeferencing moment.--overwriteβ Allow output files to overwrite existing files. no take-backs.--helpβ Print usage summary.--verboseβ Verbose module output. she will tell you EVERYTHING.--quietβ Quiet module output. she will tell you nothing. mystery woman energy.--uiβ Force launching GUI dialog.
π§ Parameters:
input=name[required] β Name of input raster map.output=name[required] β Name for new PNG file (use'-'for stdout).compression=integerβ Compression level of PNG file.(0 = none, 1 = fastest, 9 = best)- Options:
0-9 - Default:
6
π DESCRIPTION π
okay so r.out.png exports a GRASS GIS raster map in non-georeferenced Portable Network Graphics (PNG) image format, and she respects the current region resolution and bounds. no cap. literally she looks at your region and says "yes bestie, those bounds, that resolution, got it." π
Optionally the user can choose to export a World File (.wld) to provide basic georeferencing support. lowkey iconic. When used with the transparency flag this can create images useful for KML, TMS, or WMS overlays. (e.g. for use in Google Earth or as OpenLayers tiles) πΊοΈβ¨
heads up bestie: If output is redirected to stdout, the world file will be called png_map.wld. yes, that name specifically. she decided.
π EXAMPLE π
The example is based on the North Carolina sample data. π
Export of the soil map to PNG format with world file:
g.region raster=soils_Kfactor -p
# export PNG file with additional world file
r.out.png input=soils_Kfactor output=soils_Kfactor -w
# verify
gdalinfo soils_Kfactor.png
look at her go. gdalinfo said "valid" and we all cheered. ππ
π SEE ALSO π
r.out.gdal, r.out.ppm, r.out.ascii, r.import
π AUTHORS π
Alex Shevlakov Hamish Bowman
the founding mothers/fathers of this whole vibe, we stan. π«Ά
π₯ SOURCE CODE π₯
Available at: r.out.png source code (history)
Accessed: Saturday Jan 17 05:40:52 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page, bestie!! π this was GRASS GIS 8.4.2 reference manual realness, accessed Saturday Jan 17 05:40:52 2026, brought to you by the Β© 2003-2025 GRASS Development Team β r.out.png(1), out. πβ¨ go export something cute. π¦
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms