datamatrix generator return grayscale with alpha layer

This commit is contained in:
wp 2020-07-15 22:56:47 -05:00
parent f79ed45dd3
commit cb72d27810
1 changed files with 1 additions and 1 deletions

View File

@ -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')