reduce Code128 xdim
This commit is contained in:
parent
0e8c6ece0e
commit
377b7f1d2f
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
|
@ -41,7 +41,7 @@ def mm_for_px(px, dpi=DPI):
|
|||
@lru_cache(maxsize=256)
|
||||
def make_code128_exact(
|
||||
grocycode: str,
|
||||
xdim_px: int = 3, # narrower bars reduce overall width; ~0.25mm at 300dpi
|
||||
xdim_px: int = 2, # narrower bars reduce overall width; ~0.25mm at 300dpi
|
||||
dpi: int = DPI,
|
||||
) -> Image.Image:
|
||||
code = Code128(grocycode, writer=ImageWriter())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue