python3 image file is truncated (0 bytes not processed) 解决办法

报错:

image file is truncated (0 bytes not processed)

解决方法:

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

 

参考:

https://blog.csdn.net/lijuan2441988/article/details/53610980

https://blog.csdn.net/qq_41192383/article/details/88002842

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章