Mastodon: A gif avatar is in my timeline, unpaused

Created on 6 May 2017  ·  11Comments  ·  Source: tootsuite/mastodon

Taknamay (on Quitter) https://quitter.se/taknamay just reposted something from this Guizzy https://social.guizzyordi.info/guizzy (on Quitter), and Guizzy's avatar on my timeline is an animated gif that is moving.

Edit for clarity: Mastodon has a setting to autopause animated gif avatars, and this appears to not work for this particular person's avatar. I'm on cybre.space, which autopauses animated avatars.


  • [Yes] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • [N/A] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
bug

Most helpful comment

Interesting. I opened guizzy's profile on my instance and noticed that the image in question has a .jpeg extension and is delivered with content-type: image/jpeg, but it's actually a GIF.

I was under the impression that paperclip uses file to identify the MIME type (which correctly identifies the image as a GIF), but something's not working as intended here.

All 11 comments

Interesting. I opened guizzy's profile on my instance and noticed that the image in question has a .jpeg extension and is delivered with content-type: image/jpeg, but it's actually a GIF.

I was under the impression that paperclip uses file to identify the MIME type (which correctly identifies the image as a GIF), but something's not working as intended here.

Sounds likely @patf – maybe it was a gif that got uploaded with a jpeg file extension? That might confuse things enough to have it fail to transcode with a static, non-animated version.

@ashfurrow, gif just works, that is a feature. So many profile have that.
Why does it have to make it static?

@S-YOU gif avatars are still until you move your mouse over them, if I recall. So when uploading a gif as an avatar, we create a static version of it too.

@ashfurrow

gif avatars are still until you move your mouse over them.

I don't observe that behavior, where can I check that? Browsers does not do that.
I have my own profile with gif, which does not need to mouse over too, and I see a lot like that.

The default behaviour for animated GIF avatars is to show them paused in user and status lists. They auto-play when a user views an individual profile, unless the auto-play GIF setting is disabled, in which case they're hover-to-play even on a profile.

This has been a feature since 1.1.2 – can you check the version of your instance? Maybe you've discovered a bug in that code?

@ashfurrow 1.3.3. :)

Gotcha, thanks for following up. That's very strange, sounds like a bug, maybe to do with pulling in GIFs from other non-Mastodon federated users?

Have we sorted this one out?

I've not seen an animated gif avatar in my timeline since then, so I'll close this. If I see another I'll come back and comment again.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thomaskuntzz picture thomaskuntzz  ·  3Comments

KellerFuchs picture KellerFuchs  ·  3Comments

golbette picture golbette  ·  3Comments

cumbiame picture cumbiame  ·  3Comments

marrus-sh picture marrus-sh  ·  3Comments