Unable to embed a gif on imgur to a README.md on github

The gif you shared is 19MB in size.

GitHub routes all content through https://camo.githubusercontent.com/ even for external source now. Sharing a file that is bigger than the size limit (10MB) will get you a "Content length exceeded" error.

I tried sharing it on Google Drive, Dropbox, Droplr, my own server all ran into this issue unless the file size is below 5MB. It also doesn't matter if your syntax is in html or markdown.

<img src="https://static01.bbi.io/2Wt9Tk.gif"/>

!(image)[https://static01.bbi.io/2Wt9Tk.gif]

Your solution is to resize your gif. You can do it with service like this one: https://ezgif.com/resize .


the way it worked for me was with the tag like @williamli said

<img src="https://static01.bbi.io/2Wt9Tk.gif"/>

GitHub does support Imgur embeds. Make sure to provide the image extension, which isn't on Imgurs default share hyperlink.

BAD

![Imgur Image](http://i.imgur.com/zTONrOD)

GOOD

![Imgur Image](http://i.imgur.com/zTONrOD.jpg)

Imgur also provides this preformatted link under the MarkDown links menu, see image below. enter image description here

See also an example readme.md with Imgur image.


You can still have a gif in readme.md that's above 10MB if you include the gif itself in your repository.

This is because images from the repository itself are not routed through https://camo.githubusercontent.com/.

You could upload the gif to a misc folder and embed it like so:

<img src='./misc/your_file.gif'>