Willow
Willow copied to clipboard
IOErrors Not Caught on Image Load for Pillow
related to Wagtail issue.
If image is truncated or corrupted, Willow still attempts to process image.
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.
here is the image (if it is any use?)..