A helper tool to produce QR codes to be used on website and elsewhere #509
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.
Most likely I should move this PR somewhere else, https://github.com/bids-standard/artworks ? , but it was partially inspired because I saw bit.ly watermarked QR codes somewhere on website. Also for a poster(s) wanted to create branded QR codes... With this tool we get "smallest" but guaranteed to be readable QR code -- tool sweeps through incrementing levels of redundancy and verifies that QR becomes readable.
Example:
❯ tools/mkqrcode_bids -o /tmp/proj-bids-qr.png https://github.com/orgs/bids-standard/projects/10/views/1 ++ dirname tools/mkqrcode_bids + tools/mkqrcode.py -i tools/../docs/assets/img/logos/BIDS_logo_black_square_in_circle.png -o /tmp/proj-bids-qr.png https://github.com/orgs/bids-standard/projects/10/views/1 2024-09-21 17:55:35,710 - INFO - Successfully decoded text: 'https://github.com/orgs/bids-standard/projects/10/views/1' encoded with compress quality M. File /tmp/proj-bids-qr.png
produces
TODOs
may be