FB2PIX(nged)

write a framebuffer image to a .pix file

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’– FB2PIX πŸ’–

okay so this is the fb2pix page from the BRL-CAD User Commands manual, and honestly? she's a little icon. buckle up bestie πŸŽ€


✨ NAME ✨

fb2pix β€” literally just writes your framebuffer image out to a .pix file πŸ’…


🌸 SYNOPSIS 🌸

fb2pix [-h -i -c] [-s squaresize] [-w width] [-n height] [file.pix]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: fb2pix grabs the current framebuffer image straight from the display manager and writes it out as a raw .pix (RGB) file. that's it, that's the whole job, and she does it flawlessly πŸ’œ

and like β€” plot twist β€” if you don't hand her an output file and standard output isn't a terminal, the image data just goes to standard output instead. no file? no problem. 🫢

the available options are:

  • -c β€” crunch the colormap (aka apply the colormap to the pixel values). lowkey a glow-up for your pixels ✨
  • -i β€” inverse mapping, which draws the image upside down. yes she will flip your whole world, no cap πŸ™ƒ
  • -s squaresize β€” sets both the output width and height to the squaresize you give her. one number, two dimensions, efficiency queen πŸ‘‘
  • -w width β€” sets the output width only
  • -n height β€” sets the output height only
  • -h or -? β€” prints the command usage and dips. short & sweet πŸ’€
ngl if you omit the size parameters entirely, she defaults to capturing a 512x512 region. that's the fallback and it's serving πŸŽ€

🌈 EXAMPLES 🌈

⭐ Example 1. Save the framebuffer to a PIX file ⭐

mged> fb2pix -s 1024 output.pix

so what's happening here? she captures a 1024x1024 region of the active framebuffer and saves it to output.pix. iconic behavior, no notes πŸ’–


🧚 AUTHOR 🧚

BRL-CAD Team 🫢


πŸ“ BUG REPORTS πŸ“

found a bug or a problem? don't suffer in silence bestie β€” reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§


and that's the whole page, fr fr πŸ’œ big thank you to the source, BRL-CAD, and to FB2PIX(nged) herself β€” main character energy, periodt βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from