[Glitch] Add WebP support

Port bcf34e31bd  to glitch-soc
th-downstream
Thibaut Girka 6 years ago
parent 1c37ad108c
commit 538bae9f53

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

Loading…
Cancel
Save