Code Monkey home page Code Monkey logo

Comments (7)

alexzhirkevich avatar alexzhirkevich commented on July 19, 2024 1

I guess ZXing encoder automatically picks most suitable mode.

from custom-qr-generator.

michaelWuensch avatar michaelWuensch commented on July 19, 2024

Hm, okay. I tried it with a 64 char hex string that I uppercased and at least it did not become smaller (same amount of pixels). I haven't checked though if the encoded data was actually different. I will give it another go later.

from custom-qr-generator.

alexzhirkevich avatar alexzhirkevich commented on July 19, 2024

Large codes is a bug with automatic error correction level. It mistakenly decides that you have logo with default size even when you don't have it and increases ECL. Try change errorCorrectionLevel in options from Auto to Low. I think it will help to reduce the QR code size.

from custom-qr-generator.

michaelWuensch avatar michaelWuensch commented on July 19, 2024

I do not use auto for error correction. I use Medium for for that 64 char string. Setting it to low made a difference in size of the QR code while uppercasing the hex string had no effect.
Right now I need to stick with medium error correction to have them scan reliably.
I'll do some more tests later.

from custom-qr-generator.

alexzhirkevich avatar alexzhirkevich commented on July 19, 2024

So this method form ZXing should automatically select alphanumeric mode. It can't be controlled by the user.

from custom-qr-generator.

michaelWuensch avatar michaelWuensch commented on July 19, 2024

Yes, I have already seen that function and it looks good.
I will close the issue for now and only reopen if I can proof it does actually not use the correct encoding.
Thanks for your support! 👍

from custom-qr-generator.

michaelWuensch avatar michaelWuensch commented on July 19, 2024

@alexzhirkevich
I just looked at it again and I can confirm that it works and uses the standard encodings automatically.
I added the .toUppercase() function on the wrong line and it was actually still lower case...
Big facepalm moment! Sorry for wasting your time.
But the good news is everything works as expected!

from custom-qr-generator.

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.