Comments (3)
I've tested this again by upgrading to 4.2.0 and rendering a 858 bytes string with a low error correction level results in a crash:
java.lang.IllegalArgumentException: Code length overflow (3604 > 1576)
at qrcode.raw.QRCodeProcessor.createData(QRCodeProcessor.kt:359)
at qrcode.raw.QRCodeProcessor.encode(QRCodeProcessor.kt:337)
at qrcode.raw.QRCodeProcessor.encode$default(QRCodeProcessor.kt:317)
at qrcode.QRCode.<init>(QRCode.kt:114)
at qrcode.QRCodeBuilder.build(QRCodeBuilder.kt:286)
from qrcode-kotlin.
Heya @romainpiel! I'll dig a bit around!
I've done some testing with the data you provided and indeed the ECL should not interfere with the result 🤔
Right now, I'm thinking it is related to something called TypeNumber, which is calculated from the ECL and the data type itself. I'll both fix this and perhaps expose these numbers so users can set them themselves ^^
I'll work on this issue over the weekend 😬
Thanks for bringing it in <3
from qrcode-kotlin.
Thanks a lot for your quick response @g0dkar! Did you get a chance to look into it? 🙏
from qrcode-kotlin.
Related Issues (20)
- How To Decode QR HOT 1
- can't find the documentation HOT 2
- QRCode in fixed size? HOT 1
- Do you have a plan to support generating qr code with logo? HOT 2
- [v4.0.1] iOS and tvOS Feedback HOT 4
- Would it possible to support 1D barcode? HOT 1
- [Android] Blank QR code squares with compose HOT 12
- Android minimum version requirement HOT 10
- Issue when compiling for iosArm64 HOT 4
- QR codes not being generated properly for iOS HOT 1
- `BufferedImage` class not found HOT 1
- [iOS] Missing target for iOSX64 for 4.1.0 HOT 1
- Qrcode Version HOT 1
- some typos in installation and usage guide (alguns erros de Digitação nos guias de instalação e uso) HOT 3
- Make error correction configurable HOT 2
- Internet Required HOT 1
- [iOS] Other shapes than squares HOT 2
- Circle QR code not recognized HOT 4
- Use custom color function to color each square of the position probe independently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcode-kotlin.