From 377b7f1d2f1c4d30d6dcf8c60cad1d02ea241358 Mon Sep 17 00:00:00 2001 From: Piotr Oleszczyk Date: Thu, 2 Oct 2025 16:34:36 +0200 Subject: [PATCH] reduce Code128 xdim --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2f79c12..1eccdac 100644 --- a/app.py +++ b/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())