Skip to content
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

Open
nipungarg59 opened this issue Aug 3, 2017 · 8 comments
Open

Is there any way to import logo in the center of qr code? #58

nipungarg59 opened this issue Aug 3, 2017 · 8 comments

Comments

@nipungarg59
Copy link

nipungarg59 commented Aug 3, 2017

Here is the link to stackoverflow question.

@heuer
Copy link
Contributor

heuer commented Aug 3, 2017

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.

@nipungarg59
Copy link
Author

Thanks tried this and its working, I will be contributing this feature soon to this repo.

@heuer
Copy link
Contributor

heuer commented Aug 3, 2017

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.

@nipungarg59
Copy link
Author

Okay Thanks Will try that for sure!!

@mfrasca
Copy link

mfrasca commented May 27, 2018

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?

@mfrasca
Copy link

mfrasca commented May 27, 2018

what about being able to produce things like this?
image
https://research.swtch.com/qr/draw

@tobiasherp
Copy link

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.

@06parv
Copy link

06parv commented Oct 14, 2020

Is there any way to import the logo in the center of SVG qr code

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

No branches or pull requests

5 participants