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 is10. 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
- 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