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)); }