From a28ea9c8f0540e08bfb485575ce6419c84e05517 Mon Sep 17 00:00:00 2001 From: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:59:07 +0200 Subject: [PATCH 1/3] add AVIF Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> --- cypress/e2e/images/image.avif.cy.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cypress/e2e/images/image.avif.cy.ts diff --git a/cypress/e2e/images/image.avif.cy.ts b/cypress/e2e/images/image.avif.cy.ts new file mode 100644 index 000000000..4ee195c47 --- /dev/null +++ b/cypress/e2e/images/image.avif.cy.ts @@ -0,0 +1,5 @@ +import imageTest from '../mixins/image' + +describe('Open image.avif in viewer', function() { + imageTest('image.avif', 'image/avif') +}) From fc0d8561c7510e5f740ca923ec16cb670fcd7ddd Mon Sep 17 00:00:00 2001 From: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> Date: Sun, 10 Sep 2023 22:06:50 +0200 Subject: [PATCH 2/3] add AVIF Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> --- src/models/images.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/images.js b/src/models/images.js index bedaa22d4..c27317298 100644 --- a/src/models/images.js +++ b/src/models/images.js @@ -50,6 +50,7 @@ const browserSupportedMimes = [ 'image/png', 'image/svg+xml', 'image/webp', + 'image/avif', 'image/x-icon', ] From 45c38f6678d0b1853fe737d4b03992bc7b6c4de9 Mon Sep 17 00:00:00 2001 From: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> Date: Mon, 11 Sep 2023 13:15:27 +0200 Subject: [PATCH 3/3] Add AVIF to previewSupportedMimes Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com> --- src/models/images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/images.js b/src/models/images.js index c27317298..87755d3cb 100644 --- a/src/models/images.js +++ b/src/models/images.js @@ -33,6 +33,7 @@ const enabledPreviewProviders = loadState(appName, 'enabled_preview_providers', const previewSupportedMimes = [ 'image/heic', 'image/heif', + 'image/avif', 'image/tiff', 'image/x-xbitmap', ] @@ -50,7 +51,6 @@ const browserSupportedMimes = [ 'image/png', 'image/svg+xml', 'image/webp', - 'image/avif', 'image/x-icon', ]