Log when generic labels are printed
This commit is contained in:
parent
9e387e5bb1
commit
8af1ab4a3c
2
main.py
2
main.py
|
@ -368,6 +368,8 @@ def print_generic_label(text):
|
||||||
MARGIN = 50
|
MARGIN = 50
|
||||||
MAX_W, MAX_H, PAD = 1285 - (MARGIN*2), 635 - (MARGIN*2), 5
|
MAX_W, MAX_H, PAD = 1285 - (MARGIN*2), 635 - (MARGIN*2), 5
|
||||||
|
|
||||||
|
logging.info('Printing generic label: %s', text)
|
||||||
|
|
||||||
im = Image.open(location + '/label.png')
|
im = Image.open(location + '/label.png')
|
||||||
width, height = im.size
|
width, height = im.size
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user