Skip to content

Conversation

@yarikoptic
Copy link
Contributor

@yarikoptic yarikoptic commented Sep 21, 2024

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

image

TODOs

  • probably move where more appropriate
  • provide mkqrcode-requirements.txt ?
  • replace qr codes here? (could still lead to bit.ly for visitors count etc)
  • anything else?

may be

  • add control over image size?
  • I don't think we can produce svg with this backend/approach since uses PIL so raster

@Remi-Gau
Copy link
Contributor

I would be fine having it in this repo.

@julia-pfarr
Copy link
Member

@yarikoptic is this ready to be merged from your side?

@yarikoptic
Copy link
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 julia-pfarr merged commit d384137 into bids-standard:main Nov 27, 2025
8 of 9 checks 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.

3 participants