Allow images with broken headers to load.
This commit is contained in:
@@ -5,9 +5,13 @@ from tagger.interrogator.interrogator import AbsInterrogator
|
||||
from PIL import Image
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
from PIL import ImageFile
|
||||
|
||||
from tagger.interrogators import interrogators
|
||||
|
||||
# Allow images with broken headers to load
|
||||
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
group = parser.add_mutually_exclusive_group(required=True)
|
||||
|
||||
Reference in New Issue
Block a user