Remove WebP support (#11589)
This commit is contained in:
parent
15969171c1
commit
5d8ee24cd5
6 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ const loadImage = inputFile => new Promise((resolve, reject) => {
|
|||
});
|
||||
|
||||
const getOrientation = (img, type = 'image/png') => new Promise(resolve => {
|
||||
if (!['image/jpeg', 'image/webp'].includes(type)) {
|
||||
if (type !== 'image/jpeg') {
|
||||
resolve(1);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue