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 β€” off
    • 2 β€” long edge
    • 3 β€” short edge
  • -g xpixxypix β€” set page dimensions in pixels [10200x6600]. big page energy.
  • -m media β€” media code to send to printer [0]. for the 2530DL:
    • plain β€” 0
    • transparency β€” 4
    • thick stock β€” 20
    • envelope β€” 22
    • letterhead β€” 23
    • postcard β€” 25
    • labels β€” 26
    • recycled β€” 27
  • -p paper β€” paper code to send to printer [2]. the whole lineup, bestie:
    • 1 β€” executive
    • 2 β€” letter
    • 3 β€” legal
    • 80 β€” env Monarch
    • 81 β€” env #10
    • 91 β€” env C5
    • 835 β€” 4x6" photo
    • 25 β€” A5
    • 26 β€” A4
    • 45 β€” B5jis
    • 65 β€” B5iso
    • 90 β€” env DL
    • 92 β€” env C6
    • 837 β€” 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 1
    • 4 β€” Tray 2
    • 255 β€” 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/-l in the LAVAFLOW stream [3].
    • 0 β€” don't send any logical clipping amounts
    • 1 β€” only send Y clipping amount
    • 2 β€” only send X clipping amount
    • 3 β€” send both X and Y clipping amounts
  • -A β€” AllIsBlack: convert C=1,M=1,Y=1 to just K=1. works with bitcmyk input only.
  • -B β€” BlackClears: K=1 forces C,M,Y to 0. works with bitcmyk input only.
  • -z model β€” Model. the default is [0].
    • 0 β€” protocol LAVAFLOW β€” magicolor 2490 MF
    • 0 β€” protocol LAVAFLOW β€” magicolor 2530 DL
    • 1 β€” protocol OPL β€” magicolor 2480 MF
    • 2 β€” protocol LAVAFLOW β€” magicolor 1600W
    • 2 β€” protocol LAVAFLOW β€” magicolor 1680MF
    • 2 β€” protocol LAVAFLOW β€” 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 β€” Cyan
    • 2 β€” Magenta
    • 3 β€” Yellow
    • 4 β€” 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 πŸ’œ


πŸ’– 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