I use this to make an image online so that we have access to the image as long as we heve the web link.
-
Create and upload your repo on github
Make sure you have pushed your local images to remote repo
-
deduce the raw address and insert the link
![](https://raw.githubusercontent.com/username/projectname/branch/path/to/img.png)
As for me, it's
![](https://raw.githubusercgntent.com/iamwrm/image_disk/master/avator.jpg)
Then my avator image shows up
If you just want to insert a file in your repo's readme file, you can just use this markdown syntax:
![](avator.jpg)
It works both locally and on github, in other words, you don't always need Internet access.
Thanks to http://stackoverflow.com/a/14494775
Please, someone tell we the author ID of the example image on pixiv.