读取图像出现”image file is truncated“错误:
添加如下两行代码解决:
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
版权声明:本文为weixin_41770169原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
读取图像出现”image file is truncated“错误:
添加如下两行代码解决:
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True