解决办法:
在代码中添加两行
from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True
OSError: image file is truncated (28 bytes not processed)
原文:https://www.cnblogs.com/wanghui-garcia/p/10796944.html