-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to import logo in the center of qr code? #58
Comments
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. |
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" ( 😉 ) 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? |
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.
The text was updated successfully, but these errors were encountered: