Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45c569c

Browse files
committed
Fix Pillow compatibility in example
1 parent de98877 commit 45c569c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/introductory/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
from PIL import Image
246246

247247
img = Image.open('../../doc/_static/stinkbug.png')
248-
img.thumbnail((64, 64), Image.Resampling.LANCZOS) # resizes image in-place
248+
img.thumbnail((64, 64)) # resizes image in-place
249249
imgplot = plt.imshow(img)
250250

251251
###############################################################################

0 commit comments

Comments
 (0)