Git Product home page Git Product logo

Comments (15)

robotiko avatar robotiko commented on August 25, 2024 2

@dannyto , @soldair,
GS1 QR codes are standard QR codes that contains text with GS1 formatted data.

The GS1 data is basically a set of GS1 Application Identifiers.
The Application Identifiers (AI) are numeric values defined in the GS1 catalog (http://www.gs1.org/barcodes-epcrfid-id-keys/gs1-general-specifications) followed by the value for that (AI).
The mandatory value is the (01) Global Trade Item Number (GTIN) that identifies the product/ data owner.

All this GS1 jargon is quite confusing, but basically this is a catalog of identifiers with predefined values. Somehow is a schema in flat format.
By itself the GS1 QR code defines how to structure the data contained, but not what data should be defined. (Sintaxis but not semantics).
There are some fields and business scenarios that have defined GS1 standards with flows and data defined to be followed (GS1 guides that define the AI sets).

The main example provided in the https://github.com/bwipp/postscriptbarcode that can be found http://www.gs1.org/docs/barcodes/GS1_Barcodes_Fact_Sheet-GS1_2D_symbols.pdf
Defines an example for the "extended packaging" scenario that in "Retail world" means additional online information for a product package.
It simply requires a global id (01) associated to the product and the Extended Packaging URL identifier (8200) .

In conclusion, almost any QR generator can work with GS1 QR codes, but it is too open.
For a mode detailed and constrained content, it has to be application specific.

So Yes, this can create a GS1 QR code.
About constraints about to the dimensions of the code, GS1 usually define recommendations, not restrictions because each case is different and at end it will depend on real world usage. It is not the same to print a barcode on a makeup eye pen (really tiny) than on big cereal box. :)

Do you have any specific usage in mind?

from node-qrcode.

soldair avatar soldair commented on August 25, 2024 1

I'm not sure.
It seems like qrcode became a "gs1 standard" so i bet that this library can. There are constraints as to the dimensions of the code and other things hinted in the text here:

http://helpdesk.gs1.org/ArticlesBySubject.aspx?GS1%20QR%20Code&id=83706133-2072-e211-ad68-00155d644635

if someone would do a little research it would be welcome.

from node-qrcode.

dannyto avatar dannyto commented on August 25, 2024

Thank you, I hope so!
Anyone can help please!

from node-qrcode.

soldair avatar soldair commented on August 25, 2024

looks like this project implements them and has info on what it means to be a gs1 qrcode
https://github.com/bwipp/postscriptbarcode/wiki/GS1-Application-Identifier-Standard-Format

from node-qrcode.

soldair avatar soldair commented on August 25, 2024

wow thanks @robotiko for such a detailed response!
i just wanted to learn a bit and make sure that this library is at least fulfilling the base needs of it's users respecting it's scope.

@dannyto i hope this helps. The answer seems like yes but you have to add the gs1 fields to the data you put in the qrcode.

from node-qrcode.

robotiko avatar robotiko commented on August 25, 2024

@soldair I hope it helps.

Any QR code will work with GS1 codes and the correctness is in the code info, not the barcode itself that is a mere container.

Deal with GS1 coding requires a lot of GS1 knowledge about the standards, guides, etc.
Even the basic & required GTIN requires to join GS1 to be a member and get the unique identifier, so go deeper into the standards is a must to be able use them.

from node-qrcode.

dannyto avatar dannyto commented on August 25, 2024

Thanks all you guys!
Those info are so useful.

from node-qrcode.

soldair avatar soldair commented on August 25, 2024

closing but ill link to this issue from the readme about GS1

from node-qrcode.

fanke avatar fanke commented on August 25, 2024

dear soldair, the "node-qrcode" is greate, but when can you support "i would like to switch to a js only image encoder to remove these deps", what i think will be greater, thank you!

from node-qrcode.

soldair avatar soldair commented on August 25, 2024

i think so too. feel free to dig around for a god one I'm always accepting pull requests.

from node-qrcode.

jsweber avatar jsweber commented on August 25, 2024

how to set canvas'size. such as width and height

from node-qrcode.

HChen318 avatar HChen318 commented on August 25, 2024

can add a logo in the middle

from node-qrcode.

cll123456 avatar cll123456 commented on August 25, 2024

can add a logo in the middle

from node-qrcode.

baobinaqd avatar baobinaqd commented on August 25, 2024

if create qrcode is a img,I want to set some attributes,eg: alt,title, can I do ?

from node-qrcode.

m-hey avatar m-hey commented on August 25, 2024

why same opts, but second setting toCanvas Api not show qrcode?anyone has this question?

from node-qrcode.

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.