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

Dirty fix for missing PIL supported file extensions #5838

Merged
merged 2 commits into from
Dec 24, 2022

Conversation

aliencaocao
Copy link
Contributor

@aliencaocao aliencaocao commented Dec 18, 2022

Fixes #5603
Fixes #5664

This is caused by a PIL issue: python-pillow/Pillow#6809
Gradio imports matplotlib.figure which imports pnginfo from PIL and then causes this issue. The dirty solution as proposed by @jokkebk is to import PIL.Image before import gradio. Although this is definitely not a 'proper' fix, it depends on whether PIL fixes it in the future. For users with older versions of Pillow, this should be the only workaround.

@AUTOMATIC1111 AUTOMATIC1111 merged commit 34bc361 into AUTOMATIC1111:master Dec 24, 2022
@aliencaocao aliencaocao deleted the fix_gradio_pil branch December 24, 2022 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants