python-codecs: fix float being passed to pil resize args

This commit is contained in:
Koushik Dutta
2023-09-25 07:12:05 -07:00
parent 5f9006148a
commit 9dd5e10eba
3 changed files with 4 additions and 4 deletions

View File

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