foo2lava(1)
π foo2lava β the group chat guide π
okay so bestie, listen. this is the manual page for foo2lava, and it lives in the General Commands Manual section 1, which is giving "grown-up command line tool" energy and honestly? it eats. let's get into it. π«Ά
β¨ NAME β¨
foo2lava β convert Ghostscript pbmraw or bitcmyk format into a LAVAFLOW or a OPL printer stream. yes really. that's the whole job. slay. π
π SYNOPSIS π
foo2lava [options] <pbmraw-file >lava-file
foo2lava [options] <bitcmyk-file >lava-file
foo2lava [options] <pksmraw-file >lava-file
three whole ways to feed it, bestie. it reads from stdin, it writes to stdout, it's literally that simple. π¦
πΈ DESCRIPTION πΈ
okay so foo2lava takes Ghostscript pbmraw, bitcmyk, or pksmraw output formats and turns them into monochrome or color LAVAFLOW or OPL streams. why, you ask? so you can drive:
- the Konica Minolta magicolor 2530 DL network color laser printer π
- the Konica Minolta magicolor 2480/2480 MF AIO printer
- and honestly, other Zenographics-based LAVAFLOW printers too, iykyk β¨
it's giving "glue code that just works." periodt.
π COMMAND LINE OPTIONS π
π Normal Options π
these are the options used to pick the parameters of a print job that are usually controlled on a per job basis. so like, the vibes you set fresh every time.
-cβ force color mode if autodetect doesn't work. sometimes the autodetect is not the moment, so you just tell it. π¨-d duplexβ duplex code to send to printer[1].1β off2β long edge3β short edge
-g xpixxypixβ set page dimensions in pixels[10200x6600]. big page energy.-m mediaβ media code to send to printer[0]. for the2530DL:plainβ0transparencyβ4thick stockβ20envelopeβ22letterheadβ23postcardβ25labelsβ26recycledβ27
-p paperβ paper code to send to printer[2]. the whole lineup, bestie:1βexecutive2βletter3βlegal80βenv Monarch81βenv #1091βenv C5835β4x6" photo25βA526βA445βB5jis65βB5iso90βenv DL92βenv C6837β10x15cm photo
-n copiesβ number of copies[1]. one is the default but like, go off.-r xresxyresβ set device resolution in pixels/inch[1200x600].-s sourceβ source (InputSlot) code to send to printer[255].1βTray 14βTray 2255βauto
-tβ draft mode. every other pixel is white. yes, it's literally skipping pixels, and it's iconic for saving ink. π¨οΈ-J filenameβ filename string to send to printer.-U usernameβ username string to send to printer.
π§ Printer Tweaking Options π§
these are the options used to customize the operation of foo2lava for a particular printer. this is the "make it fit your machine" section. π«Ά
-u xoffxyoffβ set the offset of the start of the printable region from the upper left corner, in pixels[0x0].-l xoffxyoffβ set the offset of the end of the printable region from the lower right corner, in pixels[0x0].-L maskβ send logical clipping amounts implied by-u/-lin the LAVAFLOW stream[3].0β don't send any logical clipping amounts1β only send Y clipping amount2β only send X clipping amount3β send both X and Y clipping amounts
-Aβ AllIsBlack: convertC=1,M=1,Y=1to justK=1. works withbitcmykinput only.-Bβ BlackClears:K=1forcesC,M,Yto0. works withbitcmykinput only.-z modelβ Model. the default is[0].0β protocolLAVAFLOWβmagicolor 2490 MF0β protocolLAVAFLOWβmagicolor 2530 DL1β protocolOPLβmagicolor 2480 MF2β protocolLAVAFLOWβmagicolor 1600W2β protocolLAVAFLOWβmagicolor 1680MF2β protocolLAVAFLOWβmagicolor 1690MF
π Debugging Options π
these options are used for debugging foo2lava. detective mode: activated. π΅οΈ
-S planeβ output just a single color plane from a color print and print it on the black plane. the default is to output all color planes.1β Cyan2β Magenta3β Yellow4β Black
-D levelβ set Debug level[0].
β EXAMPLES β
create a black and white LAVAFLOW stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -r1200x600 -sDEVICE=pbmraw
-sOutputFile=- - < testpage.ps
| foo2lava -r1200x600 -g10200x6600 -p1 >testpage.zm
create a color LAVAFLOW stream:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
-sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=bitcmyk
-sOutputFile=- - < testpage.ps
| foo2lava -r1200x600 -g10200x6600 -p1 >testpage.zc
see how it's literally the same pipeline both times? the only glow-up is -sDEVICE=pbmraw versus -sDEVICE=bitcmyk, and the output file going to testpage.zm versus testpage.zc. chef's kiss. π
π FILES π
/usr/bin/foo2lava
π¦ SEE ALSO π¦
π AUTHOR π
- Rick Richardson
<rick.richardson@comcast.com> - http://foo2zjs.rkkda.com/
π and that's the whole page, bestie! no cap. it came to you from the General Commands Manual β that's the source this one lives under, fr fr. now go forth and convert those streams. you've got this. π β¨π«Ά
π¦ where this page comes from
- ubuntu noble: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6 Β· GPL-2.0-or-later
- ubuntu questing: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms