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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user