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

解决办法:

在代码中添加两行

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

 

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