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

Issue reading code-128 sample #1231

Open
cfjedimaster opened this issue Jan 5, 2023 · 2 comments
Open

Issue reading code-128 sample #1231

cfjedimaster opened this issue Jan 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cfjedimaster
Copy link

Describe the bug
I'm having an issue with a barcode in Code-128B format. I used this site, https://www.barcodesinc.com/generator/index.php, to generate t
his image:

fileoutpart3

When using this simple code,

async function getBarcode(path) {
	console.log(path);
	let result = await jsBarcodeReader({ 
		barcode:'code-128',
		image:path
	});
	return result;

}

I get: ???r????3?uu?????}????????????

To Reproduce
See above code and sample. :)

Expected behavior
A URL.

Desktop (please complete the following information):

  • Node Or Browser version [e.g. 10] 18
@cfjedimaster cfjedimaster added the bug Something isn't working label Jan 5, 2023
@mubaidr
Copy link
Owner

mubaidr commented Jan 6, 2023

This is strange, I have tested the generated barcode and it only works if you set Bar width: to 3px

You can check it online here: https://codesandbox.io/s/javascript-barcode-reader-forked-2xj9y3?file=/src/index.js

@mubaidr
Copy link
Owner

mubaidr commented Jan 6, 2023

BTW code generated by this website: https://barcode.tec-it.com/en/?data=https%3A%2F%2Fwww.raymondcamend.com

is read fine, maybe there is some specification or version information I have missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants