resolves Pillow 10 deprecation warning

This commit is contained in:
Jean Do
2023-01-13 14:38:18 -04:00
parent 5b6961eccc
commit 0f7ea65e04
+1 -1
View File
@@ -48,6 +48,6 @@ class QR:
# if qrencode fails, fall back to only encoder
if rv != 0:
return self.qrimage(data,width,height,border)
img = Image.open("/tmp/qrcode.png").resize((width,height), Image.NEAREST).convert("RGBA")
img = Image.open("/tmp/qrcode.png").resize((width,height), Image.Resampling.NEAREST).convert("RGBA")
return img