toretore / barby

The Ruby barcode generator
http://toretore.github.com/barby/
MIT License
846 stars 171 forks source link

code128 generation is different with another lib with the same format #110

Closed GianhTran closed 11 months ago

GianhTran commented 2 years ago

Hi, I am trying to generate a barcode using the following code

require 'barby'
require 'barby/barcode/code_128'
require 'barby/outputter/png_outputter'

code = 'QC1021111800004-0101'
barcode = Barby::Code128B.new(code)

but the result is quite a diff with another generator, for ex: https://barcode.tec-it.com/en/Code128

Capture1

and barcode from Barby code quite hard to be scanned