Skip to content

Commit

Permalink
Add jfif to the list of supported image formats for Viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed Mar 25, 2024
1 parent 5116e14 commit 689a3fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 689a3fb

Please sign in to comment.