Skip to content

Commit

Permalink
fix printing greyscale images on black/red tape
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaus committed Jul 10, 2018
1 parent 351fb9b commit 9b1311f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brother_ql/brother_ql_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9b1311f

Please sign in to comment.