IOError:image file is truncated.
报错原因:图像文件被截断;
解决办法:添加两行代码就可以轻松解决:
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
IOError:image file is truncated.
报错原因:图像文件被截断;
解决办法:添加两行代码就可以轻松解决:
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True