Background: I'm trying to make an FNSKU label for Amazon using python, I'm manipulating the images too much so I don't have an option to use the labels from seller central, I need to create them somehow.
Problem: the labels Amazon gives are nice and small: https://i.stack.imgur.com/hlgPA.jpg
The labels I generate are too big: https://i.stack.imgur.com/8ME1X.png
I've tried resizing the image and using barcode fonts but it all ends up not scanning, how can I code barcode that will look like the first example?
These are the modules I tried:
reportlab:
from reportlab.pdfgen import canvas
from reportlab.graphics.barcode import code128
from reportlab.lib.units import mm
c = canvas.Canvas("BRC.pdf")
c.setPageSize(57*mm, 32*mm) barcode = code128.Code128("X001SB7OYL",
barHeight=.9*inch,barWidth = 1.2)
barcode.drawOn(c, 2*mm, 20*mm) c.showPage() c.save()
-- Resizing the code here to be smaller didn't work, the code was not readable.
I also used python-barcode with a code that looks like this:
code128(u'X001SB7OYL', writer=ImageWriter())
Same problem again, once I resize it it does not get scanned.