不为别的,只为做一个连自己都羡慕的人

Python:IOError: image file is truncated 的解决办法

解决办法是,再添加如下2句代码:

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

参考网址:https://www.cnblogs.com/hongfei/p/4436767.html

 

 
 
posted @ 2021-01-08 16:42  升级打怪  阅读(600)  评论(0编辑  收藏  举报