I'm a developer, I need many screenshots to put in readme.md file where to store or host it? I found out that some people use https://user-images.githubusercontent.com/{path}/{filename} to host their image and link them with readme.md file. How to put images there??
Adding imagesOn GitHub.com, navigate to the main page of the repository. Under your repository name, click Wiki. Using the wiki sidebar, navigate to the page you want to change, and then click Edit. On the wiki toolbar, click Image.
You can create a .github/images
directory in your repo and add all your assets there.
Assets added here will be available on
https://raw.githubusercontent.com/{github_user_name}/{repo_name}/{branch}/.github/images/{asset_name}.{asset_extension}
Once you push .github/images
directory to remote your assets should be available through the mentioned link.
And https://user-images.githubusercontent.com/ is used by GitHub to store images added in issues, PR's, etc.,
Hope it helps!
UPDATE:
You can also create an assets directory in the root of your repo and use a relative path to the image.
/assets/{asset_name}.{asset_extension}
![Alt Text](/assets/{asset_name}.{asset_extension})
With this, images can be previewed without actually pushing to remote.
*** Hosting on user-images.githubusercontent.com subdomain**
If you do not intend to store any images in your repository, you can always use this https://user-images.githubusercontent.com/
To host your images in user-images subdomain you can do the following
But you will not have access to these images once uploaded, you cannot delete them. You can always contact GitHub Support if required to delete.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With