mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
Fix pylint error
This commit is contained in:
parent
1cc637cb4f
commit
caa6a37936
@ -13,7 +13,7 @@ def encode_preview_image(image: PIL.Image.Image, image_type: Literal["JPEG", "PN
|
||||
if hasattr(Image, 'Resampling'):
|
||||
resampling = Image.Resampling.BILINEAR
|
||||
else:
|
||||
resampling = Image.LANCZOS
|
||||
resampling = Image.Resampling.LANCZOS
|
||||
|
||||
image = ImageOps.contain(image, (max_size, max_size), resampling)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user