adamchainz / treepoem

Barcode rendering for Python supporting QRcode, Aztec, PDF417, I25, Code128, Code39 and many more types.
MIT License
131 stars 26 forks source link

Text under barcode is pixelated and although readable its not very clear #451

Closed CDeslatte2023 closed 1 year ago

CDeslatte2023 commented 1 year ago

Python Version

3.11.1

Package Version

treepoem 3.18.0

Description

Is there any way to make the text clearer (more crisp) once rendered? Included a saved PNG as example.

image = treepoem.generate_barcode(barcode_type="sscc18", data=sscc_preliminary, options={'includetext': True, 'textfont': 'Times-Roman'}) data = io.BytesIO() image.convert("1").save(data,"PNG") image.save("barcode.png")

barcode

adamchainz commented 1 year ago

Sorry, I don't use this library myself atm. I am not sure if there's any way. Try checking the upstream BWIPP documentation.