mirror of https://github.com/apache/superset.git
chore(deps): bump pillow deps (#25931)
This commit is contained in:
parent
b9aaf0fc05
commit
a27a0df1a4
2
setup.py
2
setup.py
|
@ -201,7 +201,7 @@ setup(
|
|||
"thrift>=0.14.1, <1.0.0",
|
||||
],
|
||||
"teradata": ["teradatasql>=16.20.0.23"],
|
||||
"thumbnails": ["Pillow>=9.5.0, <10.0.0"],
|
||||
"thumbnails": ["Pillow>=10.0.1, <11"],
|
||||
"vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"],
|
||||
"netezza": ["nzalchemy>=11.0.2"],
|
||||
"starrocks": ["starrocks>=1.0.0"],
|
||||
|
|
|
@ -201,7 +201,7 @@ class BaseScreenshot:
|
|||
logger.debug("Cropping to: %s*%s", str(img.size[0]), str(desired_width))
|
||||
img = img.crop((0, 0, img.size[0], desired_width))
|
||||
logger.debug("Resizing to %s", str(thumb_size))
|
||||
img = img.resize(thumb_size, Image.ANTIALIAS)
|
||||
img = img.resize(thumb_size, Image.Resampling.LANCZOS)
|
||||
new_img = BytesIO()
|
||||
if output != "png":
|
||||
img = img.convert("RGB")
|
||||
|
|
Loading…
Reference in New Issue