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.import
  • r.in.gdal
  • r.out.png
  • r.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