Feat/SeedQr template generator to generate svg and pdf#868
Open
bonomat wants to merge 2 commits intoSeedSigner:devfrom
Open
Feat/SeedQr template generator to generate svg and pdf#868bonomat wants to merge 2 commits intoSeedSigner:devfrom
bonomat wants to merge 2 commits intoSeedSigner:devfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
fingerprint input field, warning text, and notes section
Usage:
python template_generator.py 21 12python template_generator.py 25 24 --pdfpython template_generator.py 21 12 -c "#ff6600" -o my_templateDependencies 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.
This pull request is categorized as a:
Checklist
pytestand made sure all unit tests pass before submitting the PRIf you modified or added functionality/workflow, did you add new unit tests?
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.