[MM-11777] Add WebP preview support on web (#25784)
* Add webp to webapp image extension list * Add test webp image and test code * Change webp test image and move path --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Двоичные данные
e2e-tests/cypress/tests/fixtures/mm_file_testing/Images/WEBP.webp
поставляемый
Обычный файл
Двоичные данные
e2e-tests/cypress/tests/fixtures/mm_file_testing/Images/WEBP.webp
поставляемый
Обычный файл
Двоичный файл не отображается.
|
После Ширина: | Высота: | Размер: 21 KiB |
@@ -103,6 +103,18 @@ describe('Upload Files - Image', () => {
|
|||||||
|
|
||||||
testImage(properties);
|
testImage(properties);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('MM-T2264_7 - WEBP', () => {
|
||||||
|
const properties = {
|
||||||
|
filePath: 'mm_file_testing/Images/WEBP.webp',
|
||||||
|
fileName: 'WEBP.webp',
|
||||||
|
originalWidth: 640,
|
||||||
|
originalHeight: 426,
|
||||||
|
mimeType: 'image/webp',
|
||||||
|
};
|
||||||
|
|
||||||
|
testImage(properties);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function testImage(properties) {
|
function testImage(properties) {
|
||||||
|
|||||||
@@ -1460,7 +1460,7 @@ export const Constants = {
|
|||||||
DEFAULT_CHARACTER_LIMIT: 4000,
|
DEFAULT_CHARACTER_LIMIT: 4000,
|
||||||
IMAGE_TYPE_GIF: 'gif',
|
IMAGE_TYPE_GIF: 'gif',
|
||||||
TEXT_TYPES: ['txt', 'rtf', 'vtt'],
|
TEXT_TYPES: ['txt', 'rtf', 'vtt'],
|
||||||
IMAGE_TYPES: ['jpg', 'gif', 'bmp', 'png', 'jpeg', 'tiff', 'tif', 'psd'],
|
IMAGE_TYPES: ['jpg', 'gif', 'bmp', 'png', 'jpeg', 'tiff', 'tif', 'psd', 'webp'],
|
||||||
AUDIO_TYPES: ['mp3', 'wav', 'wma', 'm4a', 'flac', 'aac', 'ogg', 'm4r'],
|
AUDIO_TYPES: ['mp3', 'wav', 'wma', 'm4a', 'flac', 'aac', 'ogg', 'm4r'],
|
||||||
VIDEO_TYPES: ['mp4', 'avi', 'webm', 'mkv', 'wmv', 'mpg', 'mov', 'flv'],
|
VIDEO_TYPES: ['mp4', 'avi', 'webm', 'mkv', 'wmv', 'mpg', 'mov', 'flv'],
|
||||||
PRESENTATION_TYPES: ['ppt', 'pptx'],
|
PRESENTATION_TYPES: ['ppt', 'pptx'],
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user