Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GS1 QR code #45

Closed
dannyto opened this issue Jan 25, 2016 · 15 comments
Closed

GS1 QR code #45

dannyto opened this issue Jan 25, 2016 · 15 comments

Comments

@dannyto
Copy link

dannyto commented Jan 25, 2016

Hi there!

Can we create gs1 qr code.

Thankz.

@soldair
Copy link
Owner

soldair commented Jan 25, 2016

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.

@dannyto
Copy link
Author

dannyto commented Jan 26, 2016

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

@soldair
Copy link
Owner

soldair commented Jan 26, 2016

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

@robotiko
Copy link

@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?

@soldair
Copy link
Owner

soldair commented Jan 26, 2016

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.

@robotiko
Copy link

@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.

@dannyto
Copy link
Author

dannyto commented Jan 27, 2016

Thanks all you guys!
Those info are so useful.

@soldair
Copy link
Owner

soldair commented Jan 27, 2016

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

@soldair soldair closed this as completed Jan 27, 2016
@fanke
Copy link

fanke commented Feb 29, 2016

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!

@soldair
Copy link
Owner

soldair commented Feb 29, 2016

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

@jsweber
Copy link

jsweber commented Nov 24, 2017

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

@HChen318
Copy link

can add a logo in the middle

1 similar comment
@cll123456
Copy link

can add a logo in the middle

@baobinaqd
Copy link

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

@m-hey
Copy link

m-hey commented Sep 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants