From 53cc4b6ef32f845d5d38562a833e95b0070c9bdd Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 26 Mar 2023 11:36:09 -0700 Subject: [PATCH] python-codecs: fix older version of pil --- plugins/python-codecs/package-lock.json | 4 ++-- plugins/python-codecs/package.json | 2 +- plugins/python-codecs/src/pilimage.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/python-codecs/package-lock.json b/plugins/python-codecs/package-lock.json index d3cf3bd73..effd43893 100644 --- a/plugins/python-codecs/package-lock.json +++ b/plugins/python-codecs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.19", + "version": "0.1.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/python-codecs", - "version": "0.1.19", + "version": "0.1.20", "devDependencies": { "@scrypted/sdk": "file:../../sdk" } diff --git a/plugins/python-codecs/package.json b/plugins/python-codecs/package.json index 111c3ecda..55ed7e6c1 100644 --- a/plugins/python-codecs/package.json +++ b/plugins/python-codecs/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.19", + "version": "0.1.20", "description": "Python Codecs for Scrypted", "keywords": [ "scrypted", diff --git a/plugins/python-codecs/src/pilimage.py b/plugins/python-codecs/src/pilimage.py index 9cf05d9c1..7e76a9ce3 100644 --- a/plugins/python-codecs/src/pilimage.py +++ b/plugins/python-codecs/src/pilimage.py @@ -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)