A helper tool to produce QR codes to be used on website and elsewhere#509
Merged
Conversation
Contributor
|
I would be fine having it in this repo. |
Member
|
@yarikoptic is this ready to be merged from your side? |
Contributor
Author
|
as you can see from original description - I had more of glorious ideas on to finishing it up but I think we could just not let perfect be the enemy of the good and merge as is and make use of it? ;-) |
julia-pfarr
approved these changes
Nov 27, 2025
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.
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.pngproduces
TODOs
may be