ImageWriter second argument is image mode, not dpi. https://github.com/WhyNotHugo/python-barcode/blob/main/docs/writers.rst
Activity
WhyNotHugo commentedon Oct 2, 2021
Hmmm. Yeah, these docs should likely be merged into the docstrings so they stay in sync.