OVERRGB(1)

πŸ“¦ version 1.11.0, in fedora 43, fedora 44

πŸ’– OVERRGB(1) πŸ’–

okay bestie, welcome to overrgb, a User Commands classic β€” the little tool that takes your fancy RGBA nrrd and slaps it on top of a background color (or a whole background image) like it's layering an outfit. ✨


🌸 NAME 🌸

overrgb β€” composites an RGBA nrrd over a background color (or image). that's the whole gig. and it does it beautifully. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

overrgb -i <nin> [-c <contrast>] [-cfp <fixed point>] [-g <gamma>] [-b
<background>] [-bi <nbg>] -o <filename>

like yes, that's a lot of little flags but we're gonna go through every single one together, no skipping, no cap. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe. overrgb composites an RGBA nrrd over a background color (or image), and then it does gamma correction, and then it quantizes to an 8-bit image. it's giving full pipeline energy. πŸ”₯

and like, plot twist β€” your input nrrd can lowkey have more than 4 values per pixel, but only the first four are ever used. the rest are just standing there, decorative. πŸ™ˆ

here's the part that actually matters for getting your numbers right: if the RGBA nrrd is floating point, the values are taken at face value, periodt. if it's fixed point, the values are interpreted as having been quantized β€” so that 8-bit RGBA images will act exactly as you expect. iykyk. πŸ’œ

and when you're compositing with a background image, the given background image does not have to be the same size as the input image. it will get resampled (with linear interpolation) to fit. she stretches to serve the look. πŸ’–


✨ OPTIONS ✨

  • -i <nin> β€” input nrrd to composite (nrrd). the main character of the whole operation. πŸ‘‘
  • -c <contrast> β€” contrast to apply to RGB values, before gamma. β€œ0.0” means no change, β€œ1.0” means thresholding, β€œ-1.0” means a complete washout. (double); default: β€œ0.0”
  • -cfp <fixed point> β€” component level that doesn't change with contrast (double); default: β€œ0.5”
  • -g <gamma> β€” gamma to apply to image data, after contrast (double); default: β€œ1.0”
  • -b <background> β€” background color to composite against; white is 1 1 1, not 255 255 255. (3 doubles); default: β€œ0 0 0”
not me begging you to remember 1 1 1 and not 255 255 255 😭 this is the #1 thing people get wrong and it will absolutely wreck your output. fr fr.
  • -bi <nbg> β€” 8-bit RGB background image to composite against (nrrd); default: β€œβ€
  • -o <filename> β€” file to write output PPM image to (string); default: β€œ-”

🌈 SEE ALSO 🌈

gprobe(1), ilk(1), mrender(1), miter(1), nrrdSanity(1), puller(1), tend(1), unu(1), vprobe(1)

the whole friend group. go say hi. 🧚


and that's the whole page, bestie! this one's from April 2021, part of the User Commands lineup β€” so if you're citing her, that's the date and the manual section to credit. slay, go composite something gorgeous. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from