From 8a24e782d75cab49f4b0041abae043441cf0f791 Mon Sep 17 00:00:00 2001 From: Till Backhaus Date: Thu, 2 Nov 2023 08:09:05 +0100 Subject: [PATCH] [fix] "Pillow renamed ANTIALIAS to LANCZOS" fixes #142 --- brother_ql/conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brother_ql/conversion.py b/brother_ql/conversion.py index d87ddfe..6bf3b66 100755 --- a/brother_ql/conversion.py +++ b/brother_ql/conversion.py @@ -110,7 +110,7 @@ def convert(qlr, images, label, **kwargs): im = im.resize((im.size[0]//2, im.size[1])) if im.size[0] != dots_printable[0]: hsize = int((dots_printable[0] / im.size[0]) * im.size[1]) - im = im.resize((dots_printable[0], hsize), Image.ANTIALIAS) + im = im.resize((dots_printable[0], hsize), Image.LANCZOS) logger.warning('Need to resize the image...') if im.size[0] < device_pixel_width: new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))