Giter Site home page Giter Site logo

Remove padding about qrious HOT 4 CLOSED

neocotic avatar neocotic commented on July 16, 2024
Remove padding

from qrious.

Comments (4)

giiska avatar giiska commented on July 16, 2024 2

Why wont fix? I need padding 0

from qrious.

neocotic avatar neocotic commented on July 16, 2024

@mscreenie, the new padding feature isn't perfect, which is why I was originally reluctant to implement it. When nulled the padding will be determined automatically based on a number of variables. However, due to the nature of QR codes things like the complexity of the data being encoded can cause the QR size to change and other things like the element size can impact the module widths and therefore the dimensions in needed in order to fit into the element. There's only so many modules you can fit into an image before it needs to grow.

Please feel free to take a look at the code to see if you could improve the padding feature; which was only just added in the last release. I'm open to pull requests 😄

You might want to try playing around with giving your QR code different fixed sizes with 0 padding. However, if the data encoded data is dynamic at all, it the size QR code could change if the data is large enough and therefore your workaround might not work in all cases.

from qrious.

mscreenie avatar mscreenie commented on July 16, 2024

Thanks. Just read my original post. I must have been daydreaming. I'll try setting padding to zero but if I vaguely remember it produced the same error.

from qrious.

buggy-95 avatar buggy-95 commented on July 16, 2024

My project need no padding, too

from qrious.

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.