WhyNotHugo / python-barcode

㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.
http://python-barcode.rtfd.io/
MIT License
572 stars 123 forks source link

dpi #206

Closed bertramdryan closed 1 year ago

bertramdryan commented 1 year ago

Where is the dpi option in the ImageWriter?

WhyNotHugo commented 1 year ago

It is currently (regrettably) hardcoded: https://github.com/WhyNotHugo/python-barcode/blob/34e514a1ec0933cc74ee059c28d36081569e85a5/barcode/writer.py#L400-L418

A new (optional) argument to __init__ with the default value would be acceptable.