fix printing greyscale images on black/red tape

This commit is contained in:
Philipp Klaus
2018-07-10 12:14:07 +02:00
parent 351fb9bcec
commit 9b1311f9ba
+3
View File
@@ -95,6 +95,9 @@ def create_label(qlr, image, label_size, threshold=70, cut=True, dither=False, c
elif im.mode == "P":
# Convert GIF ("P") to RGB
im = im.convert("RGB" if red else "L")
elif im.mode == "L" and red:
# Convert greyscale to RGB if printing on black/red tape
im = im.convert("RGB")
if dpi_600:
dots_expected = [el*2 for el in dots_printable]