mirror of
https://github.com/koush/scrypted.git
synced 2026-09-17 09:10:38 +01:00
python-codecs: fix older version of pil
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user