Open psy21d opened 7 years ago
We can set something like
{ scale: parameter }
where parameter is "one", "double", "triple" or integer
Then this library can set canvas size automatically (with paddings) based on this settings!
I have the same problems. If you set padding to null, then the generated qr will have a nicely padding of 10 or so
I meet the same problems. The problem is resolved by set width/height in attribute not in css.
@Red626 you mean when initialize the qrious?
Ok, how about decision to solve this problem? How about scale parameter, it is really need.
I tried both initialize and set img size via attr and it does not work :(
I am having this issue. how to resolve. please help. Thank you
issue is still there
exemple var qrcode = new QRious({element:divImg,value:url}); qrcode.level = 'L'; // or else qrcode.size = 440; // 440px
Guys, the last commit was 2017(I'm not complaining, it's just a fact, probably the author / maintainers are busy). Like other libs, I don't believe they will commit any updates anymore. The best thing you can do, is fork and change yourself, or choose another lib.
@jaikme time has no limit on internet, especially in dev, as long as it helps today or later.
@ROBERT-MCDOWELL Totally agree. I am in favor of continuing to suggest, improve, and open up issues. For the future and community. Just giving a touch if it is something of urgency as I myself had.
Hi! Thank you a lot for very good project! Now I need to generate big QR codes with many information. Has a some problem with qrious settings.
QR code does not fit in default canvas! Library now can not automatically calculate canvas size for image out. But I need with compact images not for printing but for web.
Data is random sized and we can not to select properly size by hands.
I believe that is compact fix, we need that.
Check image data too, it is:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAALdElEQVR4Xu2c227kNhBE1///0V54sBq0S6eqWyYNCAvlJYlHQ5FdV3qDfHx+fn7+ef66zQQ+HkBug8VrIw8g98LjAeRmeDyAPIDcbQI328+TIQ8gN5vAzbbzKOQB5GYTuNl2HoU8gNxsAjfbzqOQB5CbTeBm23kU8j8B8vHxYY/z9Vv9r8/d3/WLx58CHGvSnwrQZ8c7jvX0GbeH129W/+2v/nM9k+7peEc9Ew0gvfN419ff6xmP9y4pRIdRh0IvcwdRYI/n6gAc8hUAN+C6Hu2B1uiA0XX0+QrKMfy0v/fsVv48RF+qL3aMJnXQgZRFlV10SGV6GpqCTWdxKtZ9uH3S+6vqiChbFNKxwzF9Cmg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