nayuki / QR-Code-generator

High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, Rust, C++, C.

Home Page:https://www.nayuki.io/page/qr-code-generator-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split data into multiple QR-codes using structured append mode

repolevedavaj opened this issue · comments

Is there any plan to support splitting data into multiple QR-codes using the structured append mode?

No plans. Are there any readers that support it? Does anyone want this feature?

We have a use-case where we would like to use QR-codes to transfer data, but as the data exceeds the max content limitation of one QR-code, we would like to split the data into multiple. XZing actually supports reading such QR-codes, but I believe you just get the metadata and need to join the content together by yourself.

As far as I understood, structured append QR-codes just have some additional metadata, but apart from that, are not different to other QR-codes. So maybe it would be enough to allow setting these bytes and do the split outside of the lib? If you like, I can try to create a PR for allowing that, what do you think?

I'm hesitant to support more functionality, as it is a commitment to implementing this 7 times over, and maintaining it forever.

You are more than welcome to fork the library and implement the feature yourself, with no warranty from me of course. You probably want to implement a new type of QrSegment like Mode.ECI.

OK I will take a look - what's the difference between the fast java implementation and the normal one?