OSError: image file is truncated (28 bytes not processed)

解决办法:

在代码中添加两行

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

 

posted @ 2019-05-01 08:48  慢行厚积  阅读(3051)  评论(0)    收藏  举报