添加2行代码即可

from PIL import ImageFile

ImageFile.LOAD_TRUNCATED_IMAGES = True

相关文章: