Skip to content

Site: feed the hero receipt out title first, hanging upside down - #20

Merged
danielmeza merged 1 commit into
mainfrom
feat/site-receipt-upside-down
Sep 22, 2026
Merged

danielmeza merged 1 commit into
mainfrom
feat/site-receipt-upside-down

Conversation

@danielmeza

Copy link
Copy Markdown
Owner

A real receipt leaves the printer title first, so it hangs upside down from the slot, with the cut edge leading. The site's hero receipt fed out footer first; now it matches a real printer.

Change (site/index.html only)

  • The printed image is rotated 180° inside the paper. The paper already feeds down out of the slot, so the title now comes out first and the footer last, next to the slot.
  • The zigzag cut stays on the paper's bottom edge, the leading edge. Only the image rotates, not the paper or its mask.
  • The caption and alt text say it hangs upside down. The QR code still scans in any orientation.

Checked locally

I served the assembled site and paused the feed animation at 25%, 50% and 75% in Chromium. The cut edge leads, CrossEscPos comes out first, and the lines, the QR code and "Thank you!" follow in print order. At rest it hangs fully upside down with the cut at the bottom.

Merging redeploys Pages. No tag is needed.

🤖 Generated with Claude Code

A real receipt leaves the printer title first, so it hangs upside down from the slot, with the cut
edge leading. The hero paper already feeds down out of the slot; rotating the printed image 180°
inside it makes the title come out first and the footer last. The zigzag cut stays on the paper's
bottom edge because only the image rotates, not the paper or its mask. The caption and alt text
explain the orientation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@danielmeza
danielmeza merged commit 440280f into main Sep 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant