Feature #7823

animated gif on frontpage

Added by Matt Gold about 5 years ago. Updated about 5 years ago.

Priority name:
Category name:
Home Page
Target version:
Start date:
Due date:
% Done:


Estimated time:


Hi Boone,

Lisa noted that the gif in this post -- -- is a bit startling, and I wonder whether it may actually be dangerous given this recent story --

Should we have a way of preventing gifs from showing up in the newsfeed on the frontpage of the site? And what do you think of removing this image from the feed?


#1 Updated by Boone Gorges about 5 years ago

  • Status changed from Assigned to Reporter Feedback

Removing this one seems sane. I've done so.

In terms of prevention, it's easy to filter out embedded gifs, but this is perhaps too wide a net - gifs have plenty of non-animated uses.

We could detect on the server whether a gif in this stream is animated, but it'll take a bit more work. Here is some PHP code: It's also possible to do it in the browser: Let me know if you want me to do it.

#2 Updated by Luke Waltzer about 5 years ago

Perhaps we can continue to explore best practices on this? I'd hate to surrender the dynamism that gifs can inject into an activity stream (Ryan's work is awesome) if there are other ways to protect vulnerable visitors...

#3 Updated by Boone Gorges about 5 years ago

Right - the vast majority of animated gifs are fine.

#4 Updated by Matt Gold about 5 years ago

  • Category name set to Home Page
  • Status changed from Reporter Feedback to Resolved

Ban all the gifs!!! Ban all the gifs!!!!

<takes a deep breath>

Okay -- I can see the argument for not instituting an outright ban on animated gifs on the front page news feed. Let's see if this problem recurs, and if it does, we can tackle the wider question then.

In the meantime, thanks for your quick work on this Boone.

Also available in: Atom PDF