Browse Source

[Glitch] Add WebP support

Port 5092d17f29  to glitch-soc
closed-social-glitch-2
Thibaut Girka 5 years ago
parent
commit
6b2eefc7bf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/util/resize_image.js

+ 1
- 1
app/javascript/flavours/glitch/util/resize_image.js View File

@ -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…
Cancel
Save