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

解决办法:

在代码中添加两行

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

猜你喜欢

转载自www.cnblogs.com/wanghui-garcia/p/10796944.html