glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
690 stars 184 forks source link

.webp image breaks all image previews (only in glitch-soc, not upstream) #1587

Open erisdisqordia opened 3 years ago

erisdisqordia commented 3 years ago

Expected behaviour

Thumbnails should load -- even if webp isn't supported

Actual behaviour

Thumbnails break and glitch-soc only shows file attachment links

Steps to reproduce the problem

  1. Upload webp alongside a regular image
  2. View in glitch-soc
  3. You won't see the thumbnail of the regular image it'll just show the attachment links
  4. View the same post on, say, mastodon.social and the webp will be broken but the thumbnails of the other images are unaffected

Here's the original post I used to test it, uploaded in Pleroma. The second image is a webp image, pleroma shows them both properly link to the post bug report pleroma

Here's the post in glitch-soc 3.4.1: bug report

Here's the post in mastodon.social: bug report masto

As you can see this is glitch-soc specific. Supporting webp would be amazing but I figured I should keep the scope of this issue to just the thumbnail issue.

Specifications

I'm on 3.4.1+glitch

tribela commented 3 years ago

Maybe related: if download remote media fails, blurhash isn't shows also. on mastodon vanilla, it shows even if download media is failed

mstdn commented 3 years ago

Can confirm this indeed. From both remote Misskey & Pleroma instances

Schermafbeelding 2021-09-11 om 20 08 11 Schermafbeelding 2021-09-11 om 20 08 21