-
Notifications
You must be signed in to change notification settings - Fork 401
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
UPC-E encoding completely wrong information #119
Comments
Hi Samy, Could you provide the code you use to generate the barcode? Note that UPC-E is only valid with 6-digits. It will add a zero in front and a checksum in the end to create a valid UPC-E barcode. If you provide 8 digits, it will try to create an EAN-8 code as it is almost the same structure but valid with 8 digits. If you have arbitrary lengths, then don't use UPC-E but the general purpose Code128 |
Please provide the code you use to generate the barcode with this library, otherwise I have no place to start testing. |
Sure
|
Has there been any movement or solutions on this. I am finding increasing numbers of UPC_E barcodes out in the wild and we currently are unable to create scannable barcodes for them. Here is what we are currently doing. Note that I am currently hardcoding the 6 digit upc in. It is a real upc for Mountain Dew that is 01213405 and we are hardcoding in 121340 to be processed by the barcode generator and spit out a UPC_E.
` We are currently running this in version 2.0.0 |
I figured out that the implemented UPC-E barcode is only working with UPC-A codes as input (properly converting them into UPC-E), but not with proper UPC-E codes as input. I started working on a solution for this issue. |
@casperbakker , @samymassoud , @oitowl7 I've provided a pull request for this issue. Once merged into the main branch, it should fix all your problems. Please, let me know if you have still problems with barcode type UPC-E. |
Was trying to generate the UPC-E for the following number 12345687
The output image of the library as follows:
Which will read as 01891113 on the scanner
While the correct one is:
Something with the conversion to UPC-A and back to UPC-E must be wrong!
BTW: This nice library is part of the Online barcode generator , so thanks for the great effort.
The text was updated successfully, but these errors were encountered: