-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bug in Pythonista JPG Decoding #721
Comments
Please try this workaround
|
Caution: |
Thanks, forgotten, some neurons were removed by my operation 😢 But not sure that somebody else would read my comment |
The following code generates the error
IOError: broken data stream when reading image file
on theload
line in Pythonista, but not PC.This code also fails if you use matplotlib to load the image instead of pillow.
You can get the code to run if you add
ImageFile.LOAD_TRUNCATED_IMAGES = True
, however, it only loads the image as a solid black image. As per the following code:The text was updated successfully, but these errors were encountered: