mirror of
https://github.com/koush/scrypted.git
synced 2026-02-18 04:22:37 +00:00
python-codecs: fix float being passed to pil resize args
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user