OSError: image file is truncated (28 bytes not processed)时间:2023-01-12 19:37:27解决办法: 在代码中添加两行 from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True