From cb72d27810040c3444b4c77140088ea0d7414933 Mon Sep 17 00:00:00 2001 From: wp Date: Wed, 15 Jul 2020 22:56:47 -0500 Subject: [PATCH] datamatrix generator return grayscale with alpha layer --- barcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barcode.py b/barcode.py index 4e6f9ce..85f32ce 100644 --- a/barcode.py +++ b/barcode.py @@ -86,4 +86,4 @@ def dmxcreate(value): # Return grayscale image with transparency img.putalpha(ImageOps.invert(img).convert('L')) - return img.convert('L') + return img.convert('LA')