Anyone using the Barby gem ( https://github.com/toretore/barby ) to generate and print barcodes? I'm generating and printing png barcode files and they are coming out fuzzy. Note that the generated PNG files look great, even when zooming way in on the bars, yet when it's printed the edges are fuzzy. I'm printing barcodes of the same size and format I got elsewhere on the same printer and they look nice and crisp.
Here's the code I'm using in case anyone has any ideas how I can get it to look better. It's unusable as of now, as the scanner can't read it.
I noticed the created png has 72 dpi, and there seems to be no way to make it higher. That may or may not have something to do with it.
require 'barby'
require 'barby/barcode/code_128'
require 'barby/outputter/png_outputter'
fnsku = 'ABC123'
barcode = Barby::Code128A.new(fnsku)
outputter = Barby::PngOutputter.new(barcode)
outputter.height = 50
outputter.xdim = 1
filepath = 'barcode.png'
File.open(filepath, 'w'){ |f| f.write outputter.to_png }
Thanks in advance.