brother_ql_create: fix b/w label creation from .gif files

This commit is contained in:
Philipp Klaus
2017-09-19 21:04:47 +02:00
parent ee16bd68bb
commit baea505a46
+3 -3
View File
@@ -86,9 +86,9 @@ def create_label(qlr, image, label_size, threshold=70, cut=True, dither=False, c
bg = Image.new("RGB", im.size, (255,255,255))
bg.paste(im, im.split()[-1])
im = bg
elif red and im.mode != "RGB":
# Convert GIF ("P") etc. to RGB
im = im.convert("RGB")
elif im.mode == "P":
# Convert GIF ("P") to RGB
im = im.convert("RGB" if red else "L")
if label_specs['kind'] == ENDLESS_LABEL:
if rotate != 'auto' and int(rotate) != 0: