52

In my question I have gifs, but they aren't animating. They work if I drag them straight into Chrome/Safari. They also work when I initially drag them onto the question, I mean I can see it working when I'm editing the question, but then once I submit the question it no longer animates. Even if I click on the edit to see if it works during animation, it still doesn't work. I've added gifs to my questions before.

I'm using the licecap the same app the user of this answer has mentioned.

I'm not sure if this has something to do with SO or it's just about me creating gifs.

Is anyone else also experiencing similar issues?

3
  • 1
    GIF uploads are working for me, I tried to post this GIF as an answer and it did animate. Commented Jul 5, 2017 at 17:38
  • 8
    @BhargavRao wondering where you uploaded that GIF!? :D
    – mfaani
    Commented Jul 5, 2017 at 17:42
  • @BhargavRao wrong.
    – user1228
    Commented Jul 6, 2017 at 17:05

1 Answer 1

99

You're using the large image modifier by appending an l to the end of the image ID in your path:

https://i.sstatic.net/c81Vkl.gif
                               ^

Imgur only supports animations on the original image. If you use one of the image size modifications, the animation is removed completely. Removing that modifier displays the original image in its animated form. If you want to resize the image because it's too large and maintain the animation, you'll have to use HTML instead:

<img src="https://i.sstatic.net/c81Vk.gif" width="400">
11
  • 29
    Woah TIL. Is this Imgur-wide? Or just for the SO namespace? Commented Jul 5, 2017 at 19:25
  • 22
    @Qix Just tried it on random Imgur pics, appending l, m and s changes their size. My mind is blown.
    – Siguza
    Commented Jul 5, 2017 at 20:48
  • 10
    To clarify - that's a lowercase "L", not the number "1". Commented Jul 5, 2017 at 20:52
  • 7
    always relevant m.popkey.co/574b46/WxVke.gif Commented Jul 5, 2017 at 20:52
  • 8
    Okay, just found the docs on this: api.imgur.com/models/image
    – Siguza
    Commented Jul 5, 2017 at 21:01
  • 5
    Stack Exchange seems to allow slightly more than the base imgur modifiers. Commented Jul 6, 2017 at 0:31
  • 4
    The extension is also irrelevant. The source image with a jpg extension: i.sstatic.net/c81Vk.jpg still animates. Allows you to sneakily add animated gifs in mediums that typically block gifs. Use responsibly.
    – Compass
    Commented Jul 7, 2017 at 20:02
  • @Compass what mediums block gifs? Any renown ones?
    – mfaani
    Commented Jul 8, 2017 at 15:57
  • @Honey Some forums may "soft" ban gifs by only allowing PNG and JPG mostly to prevent annoying animated meme walls and silliness. Hence why I said use responsibly.
    – Compass
    Commented Jul 9, 2017 at 8:32
  • Is there something wrong with the modifiers? I feel like these days when I add an m or l the image doesn't change its size and I have to to do an s which is stupid.
    – mfaani
    Commented Sep 18, 2018 at 22:13
  • @Honey They are currently broken. See here.
    – animuson StaffMod
    Commented Sep 18, 2018 at 22:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .