From b6ccb88a95aedd4b0ae7d056279eb51550babe7e Mon Sep 17 00:00:00 2001 From: Travis Abendshien Date: Wed, 8 May 2024 11:39:03 -0700 Subject: [PATCH] Fixed Some Images Breaking Thumbnailer Fixed images that were considered to be "truncated" from breaking the thumbnail renderer when trying to transpose via an EXIF flag. This was happening with certain panorama photos. --- tagstudio/src/qt/widgets/thumb_renderer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tagstudio/src/qt/widgets/thumb_renderer.py b/tagstudio/src/qt/widgets/thumb_renderer.py index 37630324..5a49911d 100644 --- a/tagstudio/src/qt/widgets/thumb_renderer.py +++ b/tagstudio/src/qt/widgets/thumb_renderer.py @@ -19,11 +19,13 @@ from PIL import ( ImageFont, ImageEnhance, ImageOps, + ImageFile, ) from PySide6.QtCore import QObject, Signal, QSize from PySide6.QtGui import QPixmap from src.core.ts_core import PLAINTEXT_TYPES, VIDEO_TYPES, IMAGE_TYPES +ImageFile.LOAD_TRUNCATED_IMAGES = True ERROR = f"[ERROR]" WARNING = f"[WARNING]"