codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.43k stars 1.08k forks source link

Is it possible to crate a qr Code with FNC1 Type to build it as a QR CODE GS-1 Type? #488

Open chavito706 opened 3 months ago

chavito706 commented 3 months ago

Is it possible to crate a qr Code with FNC1 Type to build it as a QR CODE GS-1 Type?

Originally posted by @msWP in https://github.com/codebude/QRCoder/discussions/483

KONTRAKTKILLER commented 3 months ago

It is possible, im using this Nuget for my own GS1-QR-Code Generator. You have to write the files for a String to GS1-String conversion yourself tho....

codebude commented 2 months ago

As @KONTRAKTKILLER said (and as far as my understanding of the GS1 codes reaches), it should be possible as the GS1 QR codes technically are regular QR codes. So QRCoder can render the graphic. But to make it a valid GS1 code the payload, that you encode, must be GS1 compliant. For this task QRCoder can't help you at the moment.

@KONTRAKTKILLER do you mind sharing your "string to GS1" encoder? Or can you help out with any type of reference/documentation? Then we maybe can implement it as a new PayloadGenerator.

See: https://github.com/codebude/QRCoder/blob/master/QRCoder/PayloadGenerator.cs And https://github.com/codebude/QRCoder/wiki/Advanced-usage---Payload-generators