Add WebP support (#9879)

* Add WebP support

* Remove the changes to the tooltip

refs: https://github.com/tootsuite/mastodon/pull/9879#pullrequestreview-199312528
This commit is contained in:
Acid Chicken (硫酸鶏) authored and Eugen Rochko committed 2019-02-02 12:25:04 +01:00
1 parent b253d3e0c2
commit 5092d17f29
5 files changed
+6 -6

No files matched your search

@@ -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;
}