I'm servicing a blog using GitHub Pages.
The blog service has many images files to upload, so I needed a repository that stores images.
While searching for a repository, I found a method using github-issues.
I capture my image first and then paste to github-issues body. It will be changed to a markdown image tag that has an image url like:
![image](https://user-images.githubusercontent.com/{path}/{filename})
My question is: does the image stored in githubusercontent.com
have an expire time?
If the image has an expire time, it will not appear on my blog later.
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.
To host your images, GitHub uses the open-source project Camo. Camo generates an anonymous URL proxy for each file which hides your browser details and related information from other users. The URL starts https://<subdomain>.githubusercontent.com/ , with different subdomains depending on how you uploaded the image.
To attach a file to an issue or pull request conversation, drag and drop it into the comment box. Alternatively, you can click the bar at the bottom of the comment box to browse, select, and add a file from your computer. Tip: In many browsers, you can copy-and-paste images directly into the box.
Just add an <img> tag to your README.md with relative src to your repository.
Okay, Github had a response.
These images can be removed by staff in the event of a Terms of Service violation, however they do not have a set expiration and are not deletable by customers.
Ref: https://github.community/t/does-user-images-githubusercontent-expires/129292
As for the aforementioned Terms of Service, I think it may be found here:
GitHub Terms of Service
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