image file is truncated错误解决方法

读取图像出现”image file is truncated“错误:

添加如下两行代码解决:

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True


猜你喜欢

转载自blog.csdn.net/weixin_41770169/article/details/81033806