From 689a3fbdc01079b95bca64bee4f476995b0da75c Mon Sep 17 00:00:00 2001 From: ImoutoChan Date: Mon, 25 Mar 2024 11:28:07 +0500 Subject: [PATCH] Add jfif to the list of supported image formats for Viewer --- CHANGELOG.md | 3 +++ .../Imouto.Viewer/ImoutoViewer/Extensions/ImageExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe0ada1d..75cab577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ ### Navigator * Fix webp previews in the list view +### Viewer +* Add jfif to the list of supported image formats + # 4.24.0 ### Navigator diff --git a/Source/Imouto.Viewer/ImoutoViewer/Extensions/ImageExtensions.cs b/Source/Imouto.Viewer/ImoutoViewer/Extensions/ImageExtensions.cs index 5a355ddf..2b7feb01 100644 --- a/Source/Imouto.Viewer/ImoutoViewer/Extensions/ImageExtensions.cs +++ b/Source/Imouto.Viewer/ImoutoViewer/Extensions/ImageExtensions.cs @@ -7,7 +7,7 @@ public static class ImageExtensions public static bool IsImage(this string filePath) { var ci = new CultureInfo("en-US"); - const string formats = @".jpg|.png|.jpeg|.bmp|.gif|.tiff|.webp"; + const string formats = @".jpg|.png|.jpeg|.bmp|.gif|.tiff|.webp|.jfif"; return formats.Split('|').Any(item => filePath.EndsWith(item, true, ci)); }