Commit Graph

12 Commits

Author SHA1 Message Date
bankosegger
0383b4e8cc fix: raise the default print gamma to 2.7 for brighter photos 2026-11-20 18:59:37 +01:00
a1ae6fc282 feat: print-pixel-art (#4)
Co-authored-by: bankosegger <contact@bankosegger.me>
Reviewed-on: #4
Co-authored-by: Philip Bankosegger <banko@cock.li>
Co-committed-by: Philip Bankosegger <banko@cock.li>
2026-11-19 15:55:55 +00:00
bankosegger
a465c5c88f refactor: drop the original German/English quotes
Only the English quotes remain. Adapt the caption test to quotes of any
line count and check that the list wraps round.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 22:02:44 +01:00
bankosegger
39e055eb0e feat: add more quotes to the printed slips
Move the quotes into their own module and add 67 English-only ones: good
times, Winfnachten, winf.at, studying at TU Wien, getting involved and
receipt jokes. A quote is now a list of printed lines instead of a fixed
German/English pair, and the middle dot is sent as its PC437 byte.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 22:01:33 +01:00
bankosegger
d06077a257 fix: send printed text in the printer's PC437 code page
UTF-8 bytes came out as stray glyphs, so umlauts and the sharp s in the
captions and quotes were unreadable.
2026-11-14 16:28:55 +01:00
bankosegger
1ff006bc3c feat: print a random TU Wien quote under each photo 2026-11-14 16:28:55 +01:00
bankosegger
f406b36c5f feat: print the capture date and time under the keepsake line 2026-11-14 16:28:55 +01:00
bankosegger
181a0512bd feat: caption printed photos with the event and a keepsake line 2026-11-14 16:28:55 +01:00
bankosegger
c7af3e320b 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.
2026-11-14 16:28:55 +01:00
bankosegger
4fb2ad7757 feat: default to an 80 mm USB thermal printer
Fall back to /dev/usb/lp0 at 576 dots when the printer variables are
unset; an empty PHOTOBOOTH_PRINTER still disables printing. Log the
resolved printer at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:06:36 +01:00
bankosegger
a2b83744db feat: load printer configuration from .env
Configure the 80 mm thermal printer (576 dots) via a committed .env file,
loaded at startup with dotenvy. Real environment variables take precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:00:03 +01:00
bankosegger
eae81bb052 feat: print captured photos on an ESC/POS thermal printer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 14:56:41 +01:00