mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 23:29:10 +00:00
fix: catch NotImplementedError for Float16 JPEG-XL files (#849)
This commit is contained in:
committed by
GitHub
parent
e0fb73117f
commit
8c90f21c13
@@ -213,7 +213,7 @@ class PreviewThumb(QWidget):
|
||||
image = Image.open(str(filepath))
|
||||
stats["width"] = image.width
|
||||
stats["height"] = image.height
|
||||
except (UnidentifiedImageError, FileNotFoundError) as e:
|
||||
except (UnidentifiedImageError, FileNotFoundError, NotImplementedError) as e:
|
||||
logger.error("[PreviewThumb] Could not get image stats", filepath=filepath, error=e)
|
||||
elif MediaCategories.is_ext_in_category(
|
||||
ext, MediaCategories.IMAGE_VECTOR_TYPES, mime_fallback=True
|
||||
|
||||
@@ -818,6 +818,7 @@ class ThumbRenderer(QObject):
|
||||
except (
|
||||
UnidentifiedImageError,
|
||||
DecompressionBombError,
|
||||
NotImplementedError,
|
||||
) as e:
|
||||
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
|
||||
return im
|
||||
|
||||
Reference in New Issue
Block a user