[Glitch] Add WebP support
Port 5092d17f29
to glitch-soc
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
bf94a43496
commit
6b2eefc7bf
|
@ -31,7 +31,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue