From 9b1311f9bab08cd687b5008707ce7f122a1f9b03 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Tue, 10 Jul 2018 12:14:07 +0200 Subject: [PATCH] fix printing greyscale images on black/red tape --- brother_ql/brother_ql_create.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brother_ql/brother_ql_create.py b/brother_ql/brother_ql_create.py index 24369a5..e19b1fb 100755 --- a/brother_ql/brother_ql_create.py +++ b/brother_ql/brother_ql_create.py @@ -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]