Closed sergeyshaykhullin closed 2 years ago
I tried values from test but...
Scanned barcode is not the same/ It has a 9 at the end
I have a similar issue with EAN8 codes. In my experience, dropping the last digit (the checkdigit) provides a workaround.
let ean = "200092639800";
let barcode = EAN13::new(ean).unwrap();
The above code outputs this barcode, which seems to match yours. Scanning it returns 2000926398005 too.
Workaround is found. Don't think that providing barcodes without chechdigit is a good idea. Maybe EAN13::with_check_digit(ean)
needed.
Closing for now
I have a barcode 2000926398005. I tried to generate an image from it
Same as example
Expected image: Last - 1 fat, 2 thin
Barcoders generated image: Last - 2 fat, 3 thin
Barcoders generated images is not scannable