fix: print each raster band as its own ESC/POS job

The Birch 0CP-Q3 loses sync unless GS v 0 directly follows ESC @, and on
either SII head command, printing the dot data as metres of text instead
of the photo. Initialize per band and leave density and speed unset.
This commit is contained in:
bankosegger
2026-11-14 15:31:48 +01:00
parent b71e2b32e6
commit c7af3e320b
2 changed files with 291 additions and 58 deletions

13
.env
View File

@@ -9,3 +9,16 @@ PHOTOBOOTH_PRINTER=/dev/usb/lp0
# Printable width in dots: 576 for 80 mm paper (384 for 58 mm).
PHOTOBOOTH_PRINTER_DOTS=576
# Mid-tone brightening before dithering, offsetting thermal dot gain
# (1.8-2.5 is typical; 1 disables it).
PHOTOBOOTH_PRINTER_GAMMA=2.0
# Head energy in percent of rated (70-130) and print speed: quality (120 mm/s),
# low (150), silent (180) or high (200). Both are SII RP-D10 commands (DC2 ~
# and GS s); the Birch 0CP-Q3 in the booth misparses either one and then prints
# the photo as two metres of text, so leave both empty unless the printer is
# known to understand them.
PHOTOBOOTH_PRINTER_DENSITY=
PHOTOBOOTH_PRINTER_SPEED=