ximgview(1)

✨ NAME ✨

ok so bestie, this is ximgview β€” it's the ximgview(1) page from the GRASS GIS User's Manual, and it's literally just here to view BMP images from the PNG driver. that's the whole job. iconic behavior tbh πŸ’…

🏷️ KEYWORDS 🏷️

display, graphics, raster, vector, visualization


πŸ“œ SYNOPSIS πŸ“œ

ximgview
ximgview --help
ximgview image=name  [percent=integer]   [--help]  [--verbose]
[--quiet]  [--ui]

🚩 Flags 🚩

  • --help β€” prints the usage summary, like a little "here's how u do it" note 🫢
  • --verbose β€” verbose module output, so it tells u everything it's doing, no secrets 🌸
  • --quiet β€” quiet module output, for when u want it to just chill and not yap 🀫
  • --ui β€” force launches the GUI dialog. like, drags the pretty interface out whether it wanted to or not πŸ’…

πŸŽ›οΈ Parameters πŸŽ›οΈ

  • image=name [required] β€” the image file. this one's non-negotiable bestie, u HAVE to give it one πŸ“
  • percent=integer β€” percentage of CPU time to use. default is 10. so it's not greedy, she's polite πŸ’–

πŸ’« DESCRIPTION πŸ’«

ximgview is a simple X11 image viewer for 32-bpp BMP images β€” the kind that can be created with the PNG and cairo drivers. and the display is continually refreshed, meaning it keeps re-reading and re-drawing, so u get that live-updating glow-up as stuff changes. no manual refresh needed, she just knows ✨


πŸ“ NOTES πŸ“

ok this part is important so listen up πŸ”₯

the display driver must be configured to map the file, using GRASS_RENDER_FILE_MAPPED=TRUE. this is the whole reason the magic works: it makes sure the file stays a constant size, instead of getting truncated every single time it gets updated. no map, no vibe. periodt.

fr fr, set GRASS_RENDER_FILE_MAPPED=TRUE or the whole thing falls apart 😭

🌈 EXAMPLE 🌈

(bash shell syntax β€” copy-paste ready, iykyk)

export GRASS_RENDER_FILE=map.bmp
export GRASS_RENDER_WIDTH=640
export GRASS_RENDER_HEIGHT=480
export GRASS_RENDER_IMMEDIATE=PNG
export GRASS_RENDER_FILE_MAPPED=TRUE
export GRASS_RENDER_FILE_READ=TRUE
d.erase
ximgview $GRASS_RENDER_FILE percent=50 &
d.rast elevation.dem
d.vect roads

notice how it runs ximgview in the background with & and gives it percent=50, then just keeps feeding it new layers?? that's the main character energy right there πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • PNG driver
  • cairo driver
  • wxpyimgview
  • variables

✍️ AUTHOR ✍️

Glynn Clements β€” ty for ur service king 🫑


πŸ’Ύ SOURCE CODE πŸ’Ύ

Available at: ximgview source code (history)

Accessed: Saturday Jan 17 05:42:36 2026

Main 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 8.4.2, GRASS GIS 8.4.2 Reference Manual, last touched Saturday Jan 17 05:42:36 2026, and the copyright belongs to Β© 2003-2025 GRASS Development Team β€” slay, go view some BMPs πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from