Python PIL Image "image file is truncated"问题解决

错误提示:

IOError: image file is truncated (5 bytes not processed)
1
解决方法:

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

猜你喜欢

转载自blog.csdn.net/liulina603/article/details/81908340