mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-19 00:21:40 +01:00
[Glitch] Add WebP support
Port 5092d17f2936146fa26e5d8a9b9e391f77010f28 to glitch-soc
This commit is contained in:
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…
x
Reference in New Issue
Block a user