r.in.png(1grass)
π r.in.png β the grass manual, but make it slay π
okay bestie, gather round, because we're talking about r.in.png, part of the GRASS User's Manual (that's the 1grass manual section, iykyk). It's the little module that pulls a PNG into your GRASS world. Let's get into it π«Ά
β¨ NAME β¨
r.in.png β imports a non-georeferenced PNG (Portable Network Graphics) format image. that's it, that's the whole job π
π·οΈ KEYWORDS π·οΈ
raster, import, PNG β literally the three vibes this module is serving π
π SYNOPSIS π
r.in.png
r.in.png --help
r.in.png [-fh] input=name output=name [title=string] [gamma=float]
[alpha=float] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags
-fβ Create floating-point map (0.0-1.0). β¨ floats, fancy β¨-hβ Output image file header only and exit. like, just peek at the header and dip π--overwriteβ Allow output files to overwrite existing files. no cap, this one will absolutely replace what's already there, so be brave π--helpβ Print usage summary. your bestie when you're lost π₯Ί--verboseβ Verbose module output. it's giving "tell me everything" π£οΈ--quietβ Quiet module output. shhh π€«--uiβ Force launching GUI dialog. for the visual learners π
π§ Parameters
input=name[required] β Name of input file. mandatory, no skipping π ββοΈoutput=name[required] β Name for output raster map. also mandatory, also no skipping πtitle=stringβ Title for created raster map. give your map a name, main character energy πgamma=floatβ Display gamma.alpha=floatβ Alpha threshold.
πΈ DESCRIPTION πΈ
so r.in.png imports a non-georeferenced Portable Network Graphics (PNG) image as a GRASS raster map. that's the whole thing, she's simple, she's iconic β¨
but bestie, listen: georeferencing .wld files are not supported. not even a little. if you need that, you go use r.import instead, periodt π
π NOTES π
In order to assign georeferencing after import, use r.region. so like β import first, vibe-check the location later π¦
π SEE ALSO π
r.importr.in.gdalr.out.pngr.region
π AUTHORS π
- Michael Shapiro
- Alex Shevlakov
- Glynn Clements
absolute legends, we stan π
πΎ SOURCE CODE πΎ
Available at: r.in.png source code (history)
Latest change: Thursday May 08 20:58:05 2025 in commit: 4144ba81fa125e1549fc52e1cf5feb4fa004be8b
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
okay and finally, the cute lil sign-off bestie: this whole thing is Β© 2003-2026 GRASS Development Team, and we're looking at the GRASS 8.5.0 Reference Manual. stay slay, go import a PNG, and remember β georeference responsibly πππΈ
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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