Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

百度贴吧扫码登陆报错 #93

Open
FongPing opened this issue Mar 18, 2023 · 0 comments
Open

百度贴吧扫码登陆报错 #93

FongPing opened this issue Mar 18, 2023 · 0 comments

Comments

@FongPing
Copy link

misc.py

def showImage(imagepath):
img = Image.open(imagepath)
img = img.convert('RGB')#先做通道转换,不做会报错
img.show()
img.close()

将 PNG 格式的图片保存为 JPG 格式,如果直接使用 save() 方法就会出现错误
所以要convert一下

up什么时候重构一下吧,感谢

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

No branches or pull requests

1 participant