Tweak small image detection

This commit is contained in:
RichardG867
2022-01-03 20:30:46 -03:00
parent 074e6e9a15
commit f2c71d2a1f

View File

@@ -631,7 +631,7 @@ class ImageExtractor(Extractor):
try:
# Don't save image if it's too small.
x, y = image.size
if x < 100 or y < 100:
if (x < 100 and y < 100) or x < 25 or y < 25:
raise Exception('too small')
image.save(image_path)