Skip to content

Commit 72a2bb5

Browse files
committed
Fix Pillow resampling change in rgb_display_pillow_animated_gif.py
1 parent 16873ee commit 72a2bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/rgb_display_pillow_animated_gif.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
not support PIL/pillow (python imaging library)!
1414
1515
Author(s): Melissa LeBlanc-Williams for Adafruit Industries
16+
Mike Mallett <mike@nerdcore.net>
1617
"""
1718
import os
1819
import time
@@ -122,7 +123,7 @@ def preload(self):
122123
frame_object.image = ImageOps.pad( # pylint: disable=no-member
123124
image.convert("RGB"),
124125
(self._width, self._height),
125-
method=Image.NEAREST,
126+
method=Image.Resampling.NEAREST,
126127
color=(0, 0, 0),
127128
centering=(0.5, 0.5),
128129
)

0 commit comments

Comments
 (0)