Skip to content

Feat/SeedQr template generator to generate svg and pdf#868

Open
bonomat wants to merge 2 commits intoSeedSigner:devfrom
bonomat:feat/qr-code-generator
Open

Feat/SeedQr template generator to generate svg and pdf#868
bonomat wants to merge 2 commits intoSeedSigner:devfrom
bonomat:feat/qr-code-generator

Conversation

@bonomat
Copy link
Copy Markdown

@bonomat bonomat commented Jan 29, 2026

Description

resolves #212

feat: Add SeedQR template generator tool

Create a Python script that generates SVG templates for SeedQR backup
cards in credit card size (53.98mm × 85.6mm portrait).

Features:

  • Front template: QR code grid with finder patterns, alignment patterns,
      fingerprint input field, warning text, and notes section
  • Back template: Seed word list (supports 12 and 24 words)
  • Embedded SeedSigner logo banner on both sides
  • Configurable QR sizes: 21x21, 25x25, 29x29
  • Configurable title and border color
  • Optional PDF output (--pdf) combining both pages into one file

Usage:
  python template_generator.py 21 12
  python template_generator.py 25 24 --pdf
  python template_generator.py 21 12 -c "#ff6600" -o my_template

Dependencies for PDF output: cairosvg, pypdf

It would have probably been easier to just create the SVGs in some vector tool and provide them, but hey, this was a fun claude code exercise :D

Note: I did not commit the svg files yet but happy to do so.

Template Front Back PDF
12 words - 21x21 front back PDF
24 words - 25x25 front back PDF
24 words - 29x29 front back PDF

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Documentation
  • New tool

Checklist

  • I’ve run pytest and made sure all unit tests pass before submitting the PR

If you modified or added functionality/workflow, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms/os:

Note: Keep your changes limited in scope; if you uncover other issues or improvements along the way, ideally submit those as a separate PR. The more complicated the PR the harder to review, test, and merge.

newtonick and others added 2 commits September 20, 2024 10:40
Update main branch from 0.8.0 branch
Create a Python script that generates SVG templates for SeedQR backup
cards in credit card size (53.98mm × 85.6mm portrait).

Features:
- Front template: QR code grid with finder patterns, alignment patterns,
  fingerprint input field, warning text, and notes section
- Back template: Seed word list (supports 12 and 24 words)
- Embedded SeedSigner logo banner on both sides
- Configurable QR sizes: 21x21, 25x25, 29x29
- Configurable title and border color
- Optional PDF output (--pdf) combining both pages into one file

Usage:
  `python template_generator.py 21 12`
  `python template_generator.py 25 24 --pdf`
  `python template_generator.py 21 12 -c "#ff6600" -o my_template`

Dependencies for PDF output: cairosvg, pypdf
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.

Improve/Rebuild the SeedQR templates as SVGs

2 participants