Fix ANTIALIAS
This commit is contained in:
@@ -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.Resampling.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))
|
||||
|
||||
Reference in New Issue
Block a user