Skip to content

fix Pillow version problem#251

Open
tzu901 wants to merge 1 commit intosml2h3:masterfrom
tzu901:master
Open

fix Pillow version problem#251
tzu901 wants to merge 1 commit intosml2h3:masterfrom
tzu901:master

Conversation

@tzu901
Copy link
Copy Markdown

@tzu901 tzu901 commented Jan 22, 2025

No description provided.

@NanCunChild
Copy link
Copy Markdown

NanCunChild commented Nov 20, 2025

出现问题的请自行从源码下载并安装,目前GitHub源码中已经为PIL添加了ANTIALIAS属性。
如果使用旧版本,请在调用的脚本中添加:

from PIL import Image
if not hasattr(Image, 'ANTIALIAS'):
    setattr(Image, 'ANTIALIAS', Image.LANCZOS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants