From df9d11180fc771c52e7eacf27e5ea6b020b055a0 Mon Sep 17 00:00:00 2001 From: andre-imdt Date: Mon, 24 Apr 2023 13:56:54 -0300 Subject: [PATCH] Enhancement: Virutal backgrounds now accepts webp --- .../ui/components/video-preview/virtual-background/service.js | 2 +- bigbluebutton-html5/imports/utils/mimeTypes.js | 1 + bigbluebutton-html5/private/config/settings.yml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/video-preview/virtual-background/service.js b/bigbluebutton-html5/imports/ui/components/video-preview/virtual-background/service.js index 5bcc177bf0..ce858d9a71 100644 --- a/bigbluebutton-html5/imports/ui/components/video-preview/virtual-background/service.js +++ b/bigbluebutton-html5/imports/ui/components/video-preview/virtual-background/service.js @@ -1,6 +1,6 @@ import logger from '/imports/startup/client/logger'; -const MIME_TYPES_ALLOWED = ['image/png', 'image/jpeg']; +const MIME_TYPES_ALLOWED = ['image/png', 'image/jpeg', 'image/webp']; const MAX_FILE_SIZE = 5000; // KBytes const withObjectStore = ({ diff --git a/bigbluebutton-html5/imports/utils/mimeTypes.js b/bigbluebutton-html5/imports/utils/mimeTypes.js index 763fe03ffd..9bdf3cbc46 100644 --- a/bigbluebutton-html5/imports/utils/mimeTypes.js +++ b/bigbluebutton-html5/imports/utils/mimeTypes.js @@ -13,6 +13,7 @@ export const PDF = 'application/pdf'; export const JPEG = 'image/jpeg'; export const PNG = 'image/png'; export const SVG = 'image/svg+xml'; +export const WEBP = 'image/webp'; export const UPLOAD_SUPORTED = [ XLS, diff --git a/bigbluebutton-html5/private/config/settings.yml b/bigbluebutton-html5/private/config/settings.yml index 78331ded8d..c211fb66b5 100755 --- a/bigbluebutton-html5/private/config/settings.yml +++ b/bigbluebutton-html5/private/config/settings.yml @@ -745,6 +745,8 @@ public: mime: image/jpeg - extension: .png mime: image/png + - extension: .webp + mime: image/webp selectRandomUser: enabled: true countdown: false