PIX-PNG(1)
π PIX-PNG(1) β the girlies' guide to turning PIX into PNG π
okay so bestie, you've got a BRL-CAD pix-png situation and I'm gonna walk you through it, no cap. This is the pix-png page from the BRL-CAD manual set, and by the end you'll be converting images like it's nothing. β¨
πΈ NAME πΈ
pix-png β turns a BRL-CAD PIX image into a PNG image. that's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
pix-png [-a] [-w file_width] [-n file_height] [-s squaresize] [-g gamma] [-o file.png] [file.pix] [> file.png]
like, look at her. iconic. π
π¦ DESCRIPTION π¦
pix-png takes a pix(5) format image β read either from standard input or from file.pix β and converts it into a PNG (Portable Network Graphics) image written to standard output (or to whatever file you named with -o). The output is an 8-bit RGB PNG. periodt. π
here's the thing though, and it's lowkey important: PIX files carry no dimension information. none. zero. so if your input isn't the default 512x512, you have to tell pix-png the size yourself. you do that with -w and -n, or the shorthand -s if your image is a square, or -a if you want it to read the size right off the file name. main character energy is knowing your own dimensions, and PIX simply does not. π
by default, no gAMA chunk is written. if you want a source gamma recorded in the PNG, you gotta supply -g. that's the whole tea. π
π OPTIONS π
-aβ autosize the input by deriving its width and height from the file.pix name. heads up bestie: this requires a named input file, not a pipe. so don't try it with stdin, she won't play that game. π-wfile_width β set the input width, in pixels.-nfile_height β set the input height, in scanlines.-ssquaresize β set both the width and the height to squaresize. one number, two dimensions, we love efficiency. β¨-ggamma β write the given gamma value into the PNGgAMAchunk. a value of0.6approximates PC display monitors. a negative value disables thegAMAchunk entirely β which is also the default, so, yeah, that's a thing. π-ofile.png β write the PNG image to file.png. and listen: if standard output is also redirected or piped, the same image gets written to both destinations. cute, right? butpix-pngwill not write binary image data to a terminal β she has boundaries. π«Ά
π₯ EXAMPLES π₯
Example 1. Convert a non-default-size PIX image to PNG π
pix-png -w 1280 -n 1024 render.pix > render.png
converts a 1280x1024 PIX rendering to a PNG file, telling pix-png the input dimensions since β say it with me β PIX files do not store them. π€
Example 2. Render a model and save it directly as PNG π§
rt -s 512 -o render.pix model.g component
pix-png -a render.pix -o render.png
ray traces a region of model.g with rt(1) to a 512x512 PIX file, then converts it to PNG. the -a flag autosizes from the file name, so the width and height need not be repeated. literally chef's kiss. π
β SEE ALSO β
brlcad(1), rt(1), png-pix(1), pix-fb(1), pix(5) β go read your sisters' pages, they're all family here. π
πΈ AUTHOR πΈ
BRL-CAD Team β the actual legends.
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π¦ BUG REPORTS π¦
found a bug or a problem? spill it via electronic mail to devs@brlcad.org β they want to hear it, fr fr. π¬
and that's the page, bestie! this lil' beauty comes to you from BRL-CAD (source) and is the PIX-PNG(1) manual page β stay slay, stay converting, and remember: always tell her your dimensions. π
β¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms