Skip to content
Snippets Groups Projects
Commit 35a4ea59 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Switch from ANTIALIAS to LANCZOS since it is deprecated in Pillow 10.

parent 06c8b159
No related branches found
No related tags found
2 merge requests!74Resolve "'ImageDraw' object has no attribute 'textsize'",!73Small documentation improvements and dependency updates
......@@ -92,7 +92,7 @@ def tagplot_image(plotid_object: PlotOptions) -> PlotIDTransfer:
if plotid_object.qrcode:
qrcode = create_qrcode(img_id)
qrcode.thumbnail(
(plotid_object.qr_size, plotid_object.qr_size), Image.ANTIALIAS
(plotid_object.qr_size, plotid_object.qr_size), Image.LANCZOS
)
img.paste(
qrcode,
......
......@@ -75,7 +75,7 @@ def tagplot_matplotlib(plotid_object: PlotOptions) -> PlotIDTransfer:
if plotid_object.qrcode:
qrcode = create_qrcode(fig_id)
qrcode.thumbnail(
(plotid_object.qr_size, plotid_object.qr_size), Image.ANTIALIAS
(plotid_object.qr_size, plotid_object.qr_size), Image.LANCZOS
)
fig.figimage(
qrcode,
......
......@@ -6,7 +6,7 @@ matplotlib==3.6.3
myst-parser==0.18.0
numpy==1.24.2
packaging==23.0
Pillow==9.4.0
Pillow==10.0.0
pyparsing==3.0.9
python-dateutil==2.8.2
qrcode==7.4.2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment