Skip to content

Commit

Permalink
[fix] "Pillow renamed ANTIALIAS to LANCZOS"
Browse files Browse the repository at this point in the history
  • Loading branch information
tback committed Nov 2, 2023
1 parent 56cf439 commit 8a24e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brother_ql/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8a24e78

Please sign in to comment.