python-codecs: fix older version of pil

This commit is contained in:
Koushik Dutta
2023-03-26 11:36:09 -07:00
parent d58d138a68
commit 53cc4b6ef3
3 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ def toPILImage(pilImageWrapper: PILImage, options: scrypted_sdk.ImageOptions = N
if not width:
width = pilImage.width * yscale
pilImage = pilImage.resize((width, height), resample=Image.Resampling.BILINEAR)
pilImage = pilImage.resize((width, height), resample=Image.BILINEAR)
return PILImage(pilImage)