PIX-ALIAS(1)
π pix-alias(1) β the BRL-CAD one
okay so first things first, bestie: this is the pix-alias page from the BRL-CAD manual set. yes, that BRL-CAD. buckle up π
β¨ NAME β¨
pix-alias β the little tool that converts a BRL-CAD pix image into an Alias(tm) pix format image. it's giving translator-girlie, it's giving bilingual icon π
πΈ SYNOPSIS πΈ
pix-alias [-s squaresize] [-w file_width] [-n file_height] < BRLpixfile > ALIASpixfile
like, you feed it a pix file on stdin, it hands you back an Alias pix file on stdout. in and out. no cap π¦
π DESCRIPTION π
so here's the vibe: pix-alias reads a BRL-CAD pix(5) image on standard input β and by "image" we mean literally just a stream of RGB pixel triples, no metadata, no drama β and it writes an Alias(tm) PIX image out on standard output. slay.
the Alias format is run-length encoded, and it stores pixels as count, B, G, R runs. note the order! blue, green, red. not red-green-blue. don't come for me, that's just how Alias do π and before all those runs there's a short header describing the image dimensions, offsets, and bit depth (24 bits per pixel, for the record).
here's the catch though, and it's kind of a big one: pix(5) files literally carry no dimensions. like, zero. none. so you must tell pix-alias how big your input is on the command line, or it just assumes. and what does it assume? 512 by 512 pixels. that's the default, bestie π
the output scanlines get written bottom-to-top, because that's what Alias readers expect. that's not a bug, that's a whole personality trait.
also bestie βpix-aliasrefuses to run when its standard input is a terminal. so don't just typepix-aliasand stare at it. it will not be moved π
π₯ OPTIONS π₯
-ssquaresize β sets both the width and the height of the input image to squaresize pixels. one number, two dimensions, square vibes only β-wfile_width β sets the width of the input image to file_width pixels. width girlie only π-nfile_height β sets the height of the input image to file_height scanlines. height girlie only π¦-h,-?β prints a usage message and exits. the "help me help you" flag, iconic, no notes π
π EXAMPLES π
Example 1. Convert a rendered frame to Alias format
rt -s 1024 -o frame.pix model.g component
pix-alias -s 1024 < frame.pix > frame.alias
okay so what's happening here: you render a 1024x1024 image with rt(1), and then you convert that pix(5) file into an Alias PIX file so it plays nice with tools that expect the Alias format. and the -s flag? that's you telling pix-alias "bestie the input is square, please allocate the correct buffer." because it cannot figure that out on its own. periodt π
Example 2. Convert a non-square image
pix-alias -w 1280 -n 720 < wide.pix > wide.alias
here we're converting a 1280x720 (that's 720p, yes, the classic) pix(5) file, and instead of pretending it's square we specify width and height independently with -w and -n. 720p girlies rise πΈ
π«Ά SEE ALSO π«Ά
brlcad(1), rt(1), pix-png(1), pix-bw(1), pix(5)
(the whole pix-adjacent friend group, honestly. iykyk β¨)
π AUTHOR π
BRL-CAD Team β collectively iconic, collectively responsible for this whole thing π
π§ COPYRIGHT π§
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
like yes, the literal U.S. Government. main character energy on a federal level ππΊπΈ
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
go off, tell them what broke. they want to know fr fr π
okay that's the whole page, you're all caught up my love π this was pix-alias(1) from BRL-CAD β go convert something and make it everyone's problem π
π¦ 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