# Uploading animated gif to user card - No Animation

**URL:** <https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366>\
**Category:** Support\
**Created:** [2015年九月16日 18:04 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366 "2015-09-16T18:04:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 18:04 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/1 "2015-09-16T18:04:57Z")

</div>

I am on the most recent update v1.4.0.beta11 +172. I have seen a few forums including Meta that allows animated Gifs in the user card. I attempted to upload several different GIFs as a user card background, but they all come in as still images. Is there anything special i need to do? i even played around with these settings to no avail:  
download remote images to local  
create thumbnails  
allow animated avatars  
allow animated thumbnails

nothing seemed to fix the issue. Any ideas?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年九月16日 18:17 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/2 "2015-09-16T18:17:47Z")

</div>

Have you tried uploading another GIF?

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 18:18 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/3 "2015-09-16T18:18:53Z")

</div>

> [@zogstrip](#):
>
> another

yeah i have tried about 5 different GIFS, uploading before and after these options were enabled. nothing really helped.

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 18:20 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/4 "2015-09-16T18:20:40Z")

</div>

I just uploaded a GIF here and it did the same thing. No animation. This is the origional GIF

 ![](https://global.discourse-cdn.com/meta/original/3X/c/1/c1b0be30d8c80037a14a4d7e4298871dff75cd1a.gif)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年九月16日 18:20 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/5 "2015-09-16T18:20:42Z")

</div>

Can you leave “`allow_animated_avatars`” enabled and upload a GIF you have never uploaded yet?

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 18:21 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/6 "2015-09-16T18:21:37Z")

</div>

Avatar would just be your little round icon. I havent tried that yet, but i am mainly talking about user card. I will give it another shot with a smaller gif and that option on.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年九月16日 18:25 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/7 "2015-09-16T18:25:45Z")

</div>

No, do a normal sized one, but make it a different file. Any edit will do.

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 19:02 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/8 "2015-09-16T19:02:48Z")

</div>

After the image is uploaded, i check it out and i can find the URL path to the image that was just recently uploaded and not showing animation. This is the link to the most recent image i uploaded. It is no longer animated:  
[http://discuss.hackforla.org/uploads/default/original/1X/6b4e975132a7aab3fb9034198985c6db0ac8fe26.gif](http://discuss.hackforla.org/uploads/default/original/1X/6b4e975132a7aab3fb9034198985c6db0ac8fe26.gif)

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 19:04 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/9 "2015-09-16T19:04:31Z")

</div>

Discourse is definitely removing the animation factor of these GIF images I am uploading.  
The only option on the “Files” tab that is different from the default is: allow animated avatars. and this is set to allow (checked).

The same thing is happening here on Meta. I uploaded a GIF to my user card. after checking the link to where that GIF goes, it is just a still image.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年九月16日 20:45 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/10 "2015-09-16T20:45:25Z")

</div>

> [@Basanoviat](#):
>
> Discourse is definitely removing the animation factor of these GIF images I am uploading.

As @zogstrip said:

Can you leave “allow\_animated\_avatars” enabled and upload a GIF you have never uploaded yet?

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 21:18 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/11 "2015-09-16T21:18:38Z")

</div>

yes i just did that. it is still coming in as a still image. no love. Does “allow\_animated\_avatars” also allow gifs for user card backgrounds and profile backgrounds?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年九月16日 21:20 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/12 "2015-09-16T21:20:41Z")

</div>

Did you upload a different animated image ?

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月16日 21:22 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/13 "2015-09-16T21:22:58Z")

</div>

Yup, just downloaded a random waterfall gif and tried to use that. no love. still a “still” image when uploaded as my user card background.

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月17日 21:37 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/14 "2015-09-17T21:37:49Z")

</div>

Even the user icon avatar as an animated GIF does not work.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年九月17日 21:42 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/15 "2015-09-17T21:42:29Z")

</div>

Possible there was a regression here @zogstrip?

---

<div class="post-metadata">

**Author:** ![Basanoviat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/basanoviat/32/116720_2.png) [@Basanoviat](https://meta.discourse.org/u/Basanoviat)\
**Post date:** [2015年九月17日 22:03 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/16 "2015-09-17T22:03:36Z")

</div>

your the one responsible for my obsession for a GIF user background @codinghorror ! haha

---

<div class="post-metadata">

**Author:** ![Un3qual](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/un3qual/32/116194_2.png) [@Un3qual](https://meta.discourse.org/u/Un3qual)\
**Post date:** [2015年九月19日 21:54 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/17 "2015-09-19T21:54:35Z")

</div>

Bump… I am also not able to get animated user cards and profile pictures to work.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年九月19日 22:02 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/18 "2015-09-19T22:02:17Z")

</div>

Can we see if we can fix this before release @zogstrip? At least when animated stuff Is allowed in site settings?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年九月20日 10:59 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/19 "2015-09-20T10:59:28Z")

</div>

Yes, I will have a look first thing 🇫🇷 Monday morning.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年九月20日 20:03 UTC](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366/20 "2015-09-20T20:03:32Z")

</div>

Here’s the fix 🐊

[https://github.com/discourse/discourse/commit/a3831a700341c9b6d6031e204920d1f915828655](https://github.com/discourse/discourse/commit/a3831a700341c9b6d6031e204920d1f915828655)

Was because the tempfile path we get from Rails was not including the extension of the filename and thus disabling all GIF support when optimizing the images.

[下一頁](https://meta.discourse.org/t/uploading-animated-gif-to-user-card-no-animation/33366.md?page=2)
