HACKER Q&A
📣 santiagobasulto

Where do you host images for your markdown documents?


I work a lot with Markdown files and Jupyter Notebooks. Including images in these public documents is always problematic. I can use some basic Image hosting services (imgBB, Imgur, etc), but there are 3 problems:

1. I can't be sure my image will be deleted without me knowing (so I need to keep backups in versioned repos or google drive) 2. I don't have a visibility of the status of those images: if the service is ever down, if they have downgraded the quality, etc. 3. The interface isn't great. I'd like something more markdown-friendly. Ideally with "paste from clipboard" capabilities.

Is there any service that can handle these use cases? Am I alone in this or you folks also face the same issues?

Ideally, I'd love to hook up my S3 account (or generate some keys for the service) and they could keep an automatic backup for me.

Thanks!


  👤 infinyte7 Accepted Answer ✓
It may be helpful.

I have created image folder in GitHub repo. And uploaded images to GitHub. Then I access the images using jsdelivr cdn.

Format for accessing,

cdn/gh////

Compare the url below for same file in browser.

httpss://github.com/infinyte7/Anki-xiehanzi/blob/master/image/night_mode.PNG

httpss://cdn.jsdelivr.net/gh/infinyte7/Anki-xiehanzi/image/night_mode.PNG