Open nipungarg59 opened 7 years ago
No, that's beyond the scope of this project, I'd think.
You can use the generated QR Code and modify it with an application or use (in case of PNG) https://pypi.python.org/pypi/Pillow to modify it with Python.
Thanks tried this and its working, I will be contributing this feature soon to this repo.
Thanks tried this and its working, I will be contributing this feature soon to this repo.
Well, that may create a depencency on Pillow / PIL. IMO that's against the goal of this project "(almost) no dependencies". But your solution may be interesting for others.
BTW: You don't have to create a file. Use io.BytesIO and write the data into a memory buffer. Pillow should work with the buffer as well.
Okay Thanks Will try that for sure!!
I'm curious, not so much about the final step of placing whatever image on top of the QR code, but the whole idea that the code would still work after being "defaced" ( :wink: ) this way. It only works because of redundancy in the QR code, isn't it so? Can you calculate the amount of necessary error correction, given the size of the hole you already plan to cut in the resulting QR code?
what about being able to produce things like this? https://research.swtch.com/qr/draw
FYI, I have a little project for a commandline tool which injects the Plone logo into the SVG code via lxml. I'm willing to generalize it once version 1.0 is released.
Is there any way to import the logo in the center of SVG qr code
Here is the link to stackoverflow question.