PNG(nged)

Writes the current display to a PNG image file.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… PNG (nged) β€” bestie edition

okay so real talk: this is the png command from the BRL-CAD User Commands manual, section nged. she's a little icon and she's here to screenshot your whole vibe ✨

πŸ¦‹ NAME

png β€” writes the current display to a PNG image file. that's it. that's the whole job. and she ate. πŸ“Έ

🌸 SYNOPSIS

png [-c r/g/b] [-s size] file

πŸŽ€ DESCRIPTION

Writes the current GED display to the specified PNG file. yes bestie, whatever is on your screen right now? it's going in a file. main character energy fr fr πŸ’–

The implementation supports the following options:

  • -c r/g/b β€” sets the background color using RGB values separated by non-numeric delimiters. so like, 0/0/0 or 255-255-255, the delimiters just gotta be not-numbers, iykyk 🎨
  • -s size β€” sets the output image size in pixels. heads up though: the implementation requires a size of at least 50. don't try to be cute and go smaller 🫢
Without options, the command writes a 512x512 PNG image with a white background. no flags, no stress, iconic default behavior πŸ’…

⭐ EXAMPLES

The examples show common uses of png. let's get into it πŸ‘‘

✨ Example 1. Write the current display to a PNG file.

mged>png view.png

Writes the current display to view.png. simple. clean. slayed. 🌈

✨ Example 2. Write a larger PNG with a black background.

mged>png -c 0/0/0 -s 1024 view.png

Writes a 1024x1024 PNG image using a black background. big image, dark mode, absolutely obsessed πŸ–€πŸ”₯

πŸ‘‘ AUTHOR

BRL-CAD Team β€” legends, honestly, we stan 🫢

πŸ’€ BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. if something's acting up, tell the devs, not me β€” I'm just the messenger bestie πŸ˜­πŸ“§


and that's the whole page! brought to you by BRL-CAD, filed under PNG(nged) β€” go forth and screenshot responsibly, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from