chore(python): bump required Pillow, stop using deprecated symbol

pull/3686/merge^2
matejcik 2 months ago
parent 005d69e1c2
commit 3c22a09f9d

@ -1,5 +1,5 @@
hidapi>=0.7.99.post20
web3>=5
Pillow
Pillow>=10
stellar-sdk>=6
rlp>=1.1.0 ; python_version<'3.7'

@ -29,7 +29,7 @@ extras_require = {
"hidapi": ["hidapi>=0.7.99.post20"],
"ethereum": ["rlp>=1.1.0 ; python_version<'3.7'", "web3>=5"],
"qt-widgets": ["PyQt5"],
"extra": ["Pillow"],
"extra": ["Pillow>=10"],
"stellar": ["stellar-sdk>=6"],
}

@ -64,7 +64,7 @@ def image_to_t1(filename: Path) -> bytes:
f"Image is not 128x64, but {image.size}. Do you want to resize it automatically?",
default=True,
):
image = image.resize(T1_TR_IMAGE_SIZE, Image.ANTIALIAS)
image = image.resize(T1_TR_IMAGE_SIZE, Image.Resampling.LANCZOS)
else:
raise click.ClickException("Wrong size of the image - should be 128x64")

Loading…
Cancel
Save