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)) diff --git a/setup.py b/setup.py index 09be49e..03c2487 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ "click", "future", "packbits", - "pillow>=3.3.0", + "pillow>=10.0.0", "pyusb", 'attrs', 'typing;python_version<"3.5"',