Add support for webp uploads (#18506)

This commit is contained in:
Alexander Ivanov authored and GitHub committed 2022-05-27 20:06:40 +02:00
1 parent d21251f8fe
commit 379a7a7ca7
6 files changed
+7 -7

No files matched your search

@@ -109,7 +109,7 @@ const loadImage = inputFile => new Promise((resolve, reject) => {
});
const getOrientation = (img, type = 'image/png') => new Promise(resolve => {
if (type !== 'image/jpeg') {
if (!['image/jpeg', 'image/webp'].includes(type)) {
resolve(1);
return;
}