1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

fix truncated file read (#1133)

This commit is contained in:
Alex Xu
2025-10-21 20:41:18 -07:00
committed by GitHub
parent fb9b3c676b
commit 2d288f72ea
5 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
import numpy as np
from PIL import Image
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
def fourier_transform_image(img):
"""