Skip to content

Commit cea38fa

Browse files
committed
Add support for showing AVIF images
This won't work in 100% of desktops, as old Electron doesn't support it, but it will work in 99+%, and it's not a big deal for the few desktops where it doesn't (it's an equally bad experience to today, where the data still isn't usefully visible).
1 parent 2557b58 commit cea38fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/model/events/content-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const mimeTypeToContentTypeMap: { [mimeType: string]: ViewableContentType } = {
7575
'image/svg': 'image',
7676
'image/tiff': 'image',
7777
'image/webp': 'image',
78+
'image/avif': 'image',
7879
'image/x-icon': 'image',
7980
'image/vnd.microsoft.icon': 'image',
8081

0 commit comments

Comments
 (0)