Giter VIP home page Giter VIP logo

Comments (8)

mfrasca avatar mfrasca commented on July 26, 2024 5

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

from pyqrcode.

heuer avatar heuer commented on July 26, 2024

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.

from pyqrcode.

nipungarg59 avatar nipungarg59 commented on July 26, 2024

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

from pyqrcode.

heuer avatar heuer commented on July 26, 2024

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.

from pyqrcode.

nipungarg59 avatar nipungarg59 commented on July 26, 2024

Okay Thanks Will try that for sure!!

from pyqrcode.

mfrasca avatar mfrasca commented on July 26, 2024

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?

from pyqrcode.

tobiasherp avatar tobiasherp commented on July 26, 2024

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.

from pyqrcode.

06parv avatar 06parv commented on July 26, 2024

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

from pyqrcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.