解决办法是,再添加如下2句代码:
from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True
参考网址:https://www.cnblogs.com/hongfei/p/4436767.html