Skip to content

Commit

Permalink
python-codecs: fix older version of pil
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 26, 2023
1 parent d58d138 commit 53cc4b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/python-codecs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/python-codecs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.19",
"version": "0.1.20",
"description": "Python Codecs for Scrypted",
"keywords": [
"scrypted",
Expand Down
2 changes: 1 addition & 1 deletion plugins/python-codecs/src/pilimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 53cc4b6

Please sign in to comment.