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

@@ -1,12 +1,12 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.85",
"version": "0.1.86",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/python-codecs",
"version": "0.1.85",
"version": "0.1.86",
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.85",
"version": "0.1.86",
"description": "Python Codecs for Scrypted",
"keywords": [
"scrypted",

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)