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

IOErrors Not Caught on Image Load for Pillow #48

Open
lomaxap opened this issue Jan 24, 2017 · 1 comment
Open

IOErrors Not Caught on Image Load for Pillow #48

lomaxap opened this issue Jan 24, 2017 · 1 comment
Assignees

Comments

@lomaxap
Copy link

lomaxap commented Jan 24, 2017

related to Wagtail issue.

If image is truncated or corrupted, Willow still attempts to process image.

@robnardo
Copy link

robnardo commented Dec 2, 2019

Hi All, this issue still exists. One of our marketing team members found an image of a credit card and wanted to put on our site. The image was able to be uploaded, but that was it.

Maybe the "broken data stream" or corrupt file can be checked upon upload?

The error returned was..

File "/usr/local/lib/python3.7/site-packages/PIL/ImageFile.py", line 59, in raise_ioerror
raise IOError(message + " when reading image file")
OSError: broken data stream when reading image file

full error message attached.

django_error.txt

here is the image (if it is any use?)..

Scotia-Amex-Gold-219x138

@zerolab zerolab self-assigned this Oct 11, 2023
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

3 participants