mirror of
https://github.com/ciromattia/kcc
synced 2026-06-23 23:04:14 +00:00
fix truncated file read (#1133)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from PIL import Image, ImageFilter, ImageOps
|
||||
from PIL import Image, ImageFilter, ImageOps, ImageFile
|
||||
import numpy as np
|
||||
from typing import Literal
|
||||
from .common_crop import threshold_from_power, group_close_values
|
||||
|
||||
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
||||
|
||||
|
||||
'''
|
||||
Crops inter-panel empty spaces (ignores empty spaces near borders - for that use crop margins).
|
||||
|
||||
Reference in New Issue
Block a user