Barcode lines are not equal #79
Labels
No labels
api-inconsistency
automerge
bug
contributions welcome
documentation
duplicate
enhancement
good first issue
invalid
more-information-needed
question
sync
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WhyNotHugo/python-barcode#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
import barcode
from barcode.writer import ImageWriter
code=input("Enter Code")
EAN = barcode.get_barcode_class('ean8')
ean = EAN(code, writer=ImageWriter())
imag = ean.save('barcode')
Sometimes these unequal lines appears in my image. Why is that so? They are not that visible though, but it seems quite odd when they appear multiple times. The same thing happens when I try to print code 128 and code 39.
My output:

Expected Output:

Get Same issue.
Code : 00000
Image:

We can see in the 3 last bar, that the tiny bar have not the good width.
But if i use the
SVGWriterinstead of theImageWriter, the bar have the correct width.You probably want
guardbars:EAN(code, writer=ImageWriter(), guardbars=True)@WhyNotHugo Probably yes, but the
guardbarsoption is not available initf.py