-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
PIL.UnidentifiedImageError on png file #7504
Comments
You can set from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True |
alright that's working, also @radarhere it would be great if you could explain a little about LOAD_TRUNCATED_IMAGES constant. |
https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#png
https://pillow.readthedocs.io/en/stable/reference/ImageFile.html#PIL.ImageFile.LOAD_TRUNCATED_IMAGES
As of #1991, the setting allows PNGs to skip bad PNG checksums. |
Alright thanks |
What did you do?
Trying to open one png file
What did you expect to happen?
open and skip all the file checks
What actually happened?
returning error
What are your OS, Python and Pillow versions?
i tried some third party tools to check the PNG file. https://processing.compress-or-die.com/repair-process
is there a way i can skip those checks in pillow, and just open it in insecure way of something.
The text was updated successfully, but these errors were encountered: