AP-PIX(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

✨ ap-pix(1) ✨

okay so real talk, this is a page from the BRL-CAD manual set, and it's about one very specific little glow-up: turning an Applicon color ink jet printer file into a pix file πŸ’…


🌈 NAME 🌈

ap-pix β€” the icon that converts an Applicon color ink jet printer file to a pix file πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

ap-pix [-v] file.ap > file.pix

like, that's it. that's the whole vibe. redirect it and go ✨


πŸ’– DESCRIPTION πŸ’–

bestie. okay. ap-pix converts an Applicon color ink jet printer image file into a pix(5) file, and it writes that pix file to standard output. no cap, that's the entire job 🫢

here's the tea about how the Applicon file is built: it holds three interleaved color separations β€” magenta, yellow, and cyan β€” and each one is offset 50 records apart within the same file. so they're all chilling in there together, just 50 records apart πŸ™ˆ

ap-pix reads those three separations in parallel and smushes them into RGB pixels, and the color math is genuinely so satisfying:

  • a set cyan dot clears red πŸ’™
  • a set magenta dot clears green πŸ’œ
  • a set yellow dot clears blue πŸ’›

each scanline is 432 bytes (which is 3456 bits, iykyk), so the resulting pix file has scanlines of 3456 pixels ⭐


πŸŽ€ OPTIONS πŸŽ€

  • -v β€” Verbose. prints wrote line N to standard error as each scanline is written, so you can watch the progress happen in real time πŸ”₯
  • -h, -? β€” prints a usage message and exits. the classic "help me help you" moment πŸ‘‘

🌸 EXAMPLES 🌸

Example 1. Convert an Applicon file and display it

$ ap-pix image.ap > image.pix
$ pix-fb -w 3456 image.pix

so this converts the Applicon file image.ap into a pix file, then displays the 3456-pixel-wide result on a framebuffer with pix-fb(1) πŸ–ΌοΈ

⚠️ heads up bestie: the image width must be given explicitly, because the pix format does not store dimensions. pix-fb literally cannot know otherwise 😭 that's why the -w 3456 is there, don't skip it.

🧚 SEE ALSO 🧚

brlcad(1), pix-fb(1), pix(5)


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team πŸ’œ


This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.


πŸ“ BUG REPORTS πŸ“

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§


okay that's the whole page, mwah πŸ’‹ it's from the BRL-CAD crew (that's the source, and the manual name is AP-PIX(1) if you were wondering), and yeah β€” go convert some Applicon files, you got this 🌟

πŸ“¦ where this page comes from