fix: catch NotImplementedError for Float16 JPEG-XL files (#849)

This commit is contained in:
Travis Abendshien
2025-03-10 00:58:09 -07:00
committed by GitHub
parent e0fb73117f
commit 8c90f21c13
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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