From 45c569ce925b611f009d078e7497ea4b205689a3 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 13 Sep 2022 10:28:16 +0200 Subject: [PATCH] Fix Pillow compatibility in example --- tutorials/introductory/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/introductory/images.py b/tutorials/introductory/images.py index 236bc3b4bac2..e1e1a9e82d39 100644 --- a/tutorials/introductory/images.py +++ b/tutorials/introductory/images.py @@ -245,7 +245,7 @@ from PIL import Image img = Image.open('../../doc/_static/stinkbug.png') -img.thumbnail((64, 64), Image.Resampling.LANCZOS) # resizes image in-place +img.thumbnail((64, 64)) # resizes image in-place imgplot = plt.imshow(img) ###############################################################################