try to LOAD_TRUNCATED_IMAGES, #256

This commit is contained in:
simon 2022-06-01 09:04:55 +07:00
parent 5d262d7d48
commit c41f0a7cc4
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -17,7 +17,9 @@ from home.src.ta.config import AppConfig
from home.src.ta.helper import ignore_filelist
from home.src.ta.ta_redis import RedisArchivist
from mutagen.mp4 import MP4, MP4Cover
from PIL import Image, ImageFilter
from PIL import Image, ImageFile, ImageFilter
ImageFile.LOAD_TRUNCATED_IMAGES = True
class ThumbManager: